salix/front/Dockerfile

19 lines
542 B
Docker

FROM debian:stretch-slim
EXPOSE 80
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends nginx \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
WORKDIR /etc/nginx
COPY front/nginx.conf sites-available/salix
RUN rm sites-enabled/default && ln -s ../sites-available/salix sites-enabled/salix
COPY front/salix/manifest.json /salix/dist/
COPY dist /salix/dist
CMD ["nginx", "-g", "daemon off;"]