You've already forked pypi-proxy
Initial Project
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
FROM nginx:latest AS build
|
||||
|
||||
COPY conf/nginx.conf /etc/nginx/nginx.conf
|
||||
ADD --chmod=a+x entrypoint/docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
# Create the folder structure for the cache
|
||||
RUN mkdir -p /var/lib/nginx/pypi && \
|
||||
chown -R www-data:www-data /var/lib/nginx
|
||||
|
||||
FROM scratch as final
|
||||
|
||||
COPY --from=build / /
|
||||
|
||||
# Where the cache data is stored in case you want to persist ;)
|
||||
VOLUME [ "/var/lib/nginx/pypi" ]
|
||||
# Nginx is listening on port 80
|
||||
EXPOSE 80
|
||||
|
||||
ENV TZ=Pacific/Auckland
|
||||
|
||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user