-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (29 loc) · 1.13 KB
/
Copy pathDockerfile
File metadata and controls
30 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ghcr.io/osu-wams/php:8.2-apache AS production
COPY docker-wams-entry /usr/local/bin
ENV PATH="$PATH:/var/www/html/vendor/bin"
WORKDIR /var/www/html
USER www-data
COPY --chown=www-data:www-data . /var/www/html
ARG GITHUB_TOKEN=${GITHUB_TOKEN}
RUN composer config --global github-oauth.github.com ${GITHUB_TOKEN} \
&& composer install -o --no-dev
ARG GITHUB_TOKEN=
RUN mkdir -p /var/www/html/docroot/sites/default/files; \
chown -R www-data:www-data /var/www/html/docroot/sites/default/files; \
mkdir -p /var/www/files-private; \
chown -R www-data:www-data /var/www/files-private;
VOLUME /var/www/html/docroot/sites/default/files
ENTRYPOINT [ "docker-wams-entry" ]
CMD [ "apache2-foreground" ]
FROM ghcr.io/osu-wams/php:8.2-apache-dev AS development
ARG SMTP_HOST=${SMTP_HOST}
COPY docker-wams-entry /usr/local/bin
ENV PATH="$PATH:/var/www/html/vendor/bin"
WORKDIR /var/www/html
COPY --from=production /var/www/html /var/www/html
ARG GITHUB_TOKEN=${GITHUB_TOKEN}
RUN composer config --global github-oauth.github.com ${GITHUB_TOKEN} \
&& composer install -o
ARG GITHUB_TOKEN=
ENTRYPOINT [ "docker-wams-entry" ]
CMD [ "apache2-foreground" ]