Dockerfile for proxying s3 resources with nginx

This commit is contained in:
shockrah 2023-02-28 20:20:21 -08:00
parent 91bb927cf5
commit 0f96719383

View File

@ -1,9 +1,8 @@
FROM nginx
ARG SRC
RUN mkdir -p /var/www/blog.shockrah.xyz
FROM ghcr.io/nginxinc/nginx-s3-gateway/nginx-oss-s3-gateway:latest
ENV AWS_SIGS_VERSION=2 \
S3_STYLE=virtual \
PROVIDE_INDEX_PAGE=true \
S3_SERVER_PORT=443 \
S3_SERVER_PROTO=https \
ALLOW_DIRECTORY_LIST=false
# TODO: let's not make this permanent
COPY shockrah.xyz /var/www/shockrah.xyz
COPY resume.shockrah.xyz /var/www/resume.shockrah.xyz
COPY nginx.conf /etc/nginx/nginx.conf