-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
24 lines (18 loc) · 848 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# For publishing to public registries
FROM public.ecr.aws/docker/library/php:7-apache
RUN apt-get update && apt-get install -y libpng-dev
RUN docker-php-ext-install mysqli pcntl gd
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY src/apache.conf.default-docker /etc/apache2/sites-enabled/techscore.conf
COPY res/www /var/www/html
COPY www /var/www/html
COPY bin /var/www/bin
COPY lib /var/www/lib
COPY src/db /var/www/src/db
RUN ln -s /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/
RUN ln -s /etc/apache2/mods-available/headers.load /etc/apache2/mods-enabled/
# Hack to invoke alternative startup
COPY ./src/techscore-apache2-foreground /usr/local/bin/
COPY ./src/techscore-processor-foreground /usr/local/bin/
ENV AWS_CONTAINER_CREDENTIALS_RELATIVE_URI="MISSING"
CMD ["techscore-apache2-foreground"]