salix/front/Dockerfile

19 lines
519 B
Docker
Raw Normal View History

2018-12-27 11:54:16 +00:00
FROM debian:stretch-slim
EXPOSE 80
2019-02-25 13:02:47 +00:00
ENV TZ Europe/Madrid
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
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;"]