-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Alpine linux supports nginx, got a great package manager and a full container with nginx weights 36MB instead of 255MB just from the ubuntu base image we are using here.
Something like (not tested btw)
FROM gliderlabs/alpine:3.3
# Install nginx
RUN apk add --update nginx=1.8.0-r1 && \
rm -rf /var/cache/apk/* && \
chown -R nginx:www-data /var/lib/nginx
# Add the files
ADD root /
# Expose the ports for nginx
EXPOSE 80 443
COPY nginx-ingress /
COPY nginx/ingress.tmpl /
RUN rm /etc/nginx/conf.d/*
CMD ["/nginx-ingress"]
Metadata
Metadata
Assignees
Labels
No labels