fix: Replace ADD with COPY for entrypoint

This commit is contained in:
2024-06-09 22:52:01 +12:00
parent f1c4b2183d
commit 434627f001

View File

@@ -1,11 +1,12 @@
FROM nginx:latest AS build
COPY conf/nginx.conf /etc/nginx/nginx.conf
ADD --chmod=a+x entrypoint/docker-entrypoint.sh /docker-entrypoint.sh
COPY 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
chown -R www-data:www-data /var/lib/nginx && \
chmod a+x /docker-entrypoint.sh
FROM scratch as final