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
|
2018-12-31 13:02:46 +00:00
|
|
|
|
2018-12-27 11:54:16 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y apt-utils \
|
2018-12-31 13:02:46 +00:00
|
|
|
&& apt-get install -y --no-install-recommends nginx
|
|
|
|
|
2019-01-04 12:32:04 +00:00
|
|
|
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
|
|
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
|
|
|
|
2018-12-31 13:02:46 +00:00
|
|
|
WORKDIR /etc/nginx
|
|
|
|
COPY services/nginx/temp/nginx.conf sites-available/salix
|
|
|
|
RUN rm sites-enabled/default && ln -s ../sites-available/salix sites-enabled/salix
|
|
|
|
|
|
|
|
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;"]
|