Dockerfile.alpine 538 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM alpine:3.12

LABEL maintainer="Nane Kratzke <nane.kratzke@th-luebeck.de>"

RUN apk update
RUN apk add nginx

# Add to remove unnecessary package manager data
# RUN rm -rf /var/cache/apk/*

# Image Shrinking effect
# - activate to perform all steps ending in one image layer
# - deactivate all RUN commands above 
# RUN apk update && \
#     apk add nginx && \
#     rm -rf /var/cache/apk/*

ADD web /var/www/html
ADD nginx.conf /etc/nginx/conf.d/localhost.conf

EXPOSE 80

ENTRYPOINT ["nginx", "-g", "daemon off;pid /tmp/nginx.pid;"]