mirror of
https://github.com/chartdb/chartdb.git
synced 2026-05-18 04:00:35 -05:00
fix: docker image (#982)
This commit is contained in:
+11
-1
@@ -27,7 +27,17 @@ FROM nginx:stable-alpine AS production
|
||||
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html
|
||||
COPY ./default.conf.template /etc/nginx/conf.d/default.conf.template
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Set permissions for nginx user to write to necessary directories
|
||||
RUN chmod +x /entrypoint.sh && \
|
||||
chown -R nginx:nginx /usr/share/nginx/html && \
|
||||
chown -R nginx:nginx /etc/nginx/conf.d && \
|
||||
chown -R nginx:nginx /var/cache/nginx && \
|
||||
chown -R nginx:nginx /var/log/nginx && \
|
||||
mkdir -p /var/run/nginx && \
|
||||
chown -R nginx:nginx /var/run/nginx && \
|
||||
touch /var/run/nginx.pid && \
|
||||
chown -R nginx:nginx /var/run/nginx.pid
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
||||
Reference in New Issue
Block a user