forked from github.com/GenderDysphoria.fyi
Update docker deployment to rootless docker.
This commit is contained in:
@@ -4,12 +4,17 @@
|
||||
## Used by automation. Can be built manually for testing.
|
||||
##
|
||||
####
|
||||
FROM alpine:3.17
|
||||
FROM alpine:3.20
|
||||
RUN apk add nginx supervisor
|
||||
RUN mkdir -p /var/www
|
||||
RUN rm -rf /etc/nginx
|
||||
COPY dist /var/www/build
|
||||
COPY .conf/nginx /etc/nginx
|
||||
COPY .conf/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN chown -R nobody /var/www
|
||||
RUN chown -R nobody /etc/nginx
|
||||
RUN chown -R nobody /var/www/build
|
||||
RUN chown -R nobody /etc/supervisor/conf.d/
|
||||
USER nobodys
|
||||
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user