2018-12-27 11:54:16 +00:00
|
|
|
FROM debian:stretch-slim
|
|
|
|
EXPOSE 80
|
2016-11-17 09:18:11 +00:00
|
|
|
|
2018-12-27 11:54:16 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update \
|
2019-01-08 17:46:14 +00:00
|
|
|
&& apt-get install -y --no-install-recommends nginx \
|
2019-01-08 19:09:55 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
2019-01-04 12:32:04 +00:00
|
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
|
|
|
|
2018-12-31 13:02:46 +00:00
|
|
|
WORKDIR /etc/nginx
|
2019-01-25 22:02:29 +00:00
|
|
|
COPY front/nginx.conf sites-available/salix
|
2018-12-31 13:02:46 +00:00
|
|
|
RUN rm sites-enabled/default && ln -s ../sites-available/salix sites-enabled/salix
|
|
|
|
|
2019-01-28 00:25:03 +00:00
|
|
|
COPY front/salix/manifest.json /salix/dist/
|
2018-12-31 13:02:46 +00:00
|
|
|
COPY dist /salix/dist
|
2016-11-17 09:18:11 +00:00
|
|
|
|
2018-12-31 13:02:46 +00:00
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|