policyview_public / Dockerfile
cjerzak's picture
Update Dockerfile
508adda verified
raw
history blame contribute delete
373 Bytes
FROM nginx:1.25-alpine
# envsubst for templating
RUN apk add --no-cache gettext
# Runtime vars (set at deploy)
ENV HF_TOKEN=""
ENV UPSTREAM_HOST=""
# Keep everything we touch outside /etc to avoid perms issues
COPY nginx.conf.template /app/nginx.conf.template
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
EXPOSE 7860
CMD ["/app/entrypoint.sh"]