Palmr / Dockerfile
abcd118q's picture
Update Dockerfile
3906247 verified
Raw
History Blame Contribute Delete
729 Bytes
FROM kyantech/palmr:latest
USER root
RUN if [ -f /etc/alpine-release ]; then \
apk add --no-cache nginx; \
else \
apt-get update && apt-get install -y nginx && rm -rf /var/lib/apt/lists/*; \
fi
COPY nginx.conf /app/nginx.conf
COPY entrypoint.sh /app/entrypoint.sh
RUN mkdir -p /var/lib/nginx /var/log/nginx /var/tmp/nginx /run/nginx \
/app/server/prisma \
/app/palmr-app/uploads /app/palmr-app/temp-uploads && \
chmod 777 /app/server && \
chown -R 1000:1000 /app/palmr-app /app/server/prisma && \
chmod +x /app/entrypoint.sh
ENV SECURE_SITE=true
ENV S3_FORCE_PATH_STYLE=true
ENV PORT=7860
ENV DISABLE_FILESYSTEM_ENCRYPTION=true
ENTRYPOINT ["/app/entrypoint.sh"]