Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SchulzeStTSI authored Sep 8, 2021
1 parent aa992d1 commit c74e44b
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,5 @@
FROM alpine:latest

RUN apk add openrc

RUN apk add nginx

RUN mkdir -p /run/nginx

RUN touch /run/nginx/nginx.pid

RUN adduser -D -g 'www' www

RUN mkdir /www

RUN chown -R www:www /var/lib/nginx

RUN chown -R www:www /www
FROM nginx:alpine

COPY nginx/default.conf.template /etc/nginx/templates/default.conf.template

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]

0 comments on commit c74e44b

Please sign in to comment.