18 lines
359 B
Docker
18 lines
359 B
Docker
|
FROM nginx:stable-alpine
|
||
|
ARG APP
|
||
|
COPY dist/apps/$APP /usr/share/nginx/html
|
||
|
COPY nginx/nginx.conf /etc/nginx/conf.d/default.conf
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
WORKDIR /usr/share/nginx/html
|
||
|
COPY ./env.sh .
|
||
|
COPY ./apps/$APP/.env .env
|
||
|
|
||
|
# Add bash
|
||
|
RUN apk add --no-cache bash
|
||
|
|
||
|
RUN chmod +x ./env.sh
|
||
|
CMD ["/bin/sh", "-c", "/usr/share/nginx/html/env.sh && nginx -g \"daemon off;\""]
|
||
|
|