Files

21 lines
463 B
Docker
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
FROM tus-php-base
ENV REDIS_HOST tus-php-redis
ENV REDIS_PORT 6379
RUN apk add --no-cache redis
COPY ./configs/default.conf /etc/nginx/conf.d/default.conf
ENV DOC_ROOT /var/www
ENV SOURCE_CODE ${DOC_ROOT}/html
RUN mkdir -p ${SOURCE_CODE}
VOLUME ${SOURCE_CODE}
WORKDIR ${DOC_ROOT}
RUN mkdir -p ${DOC_ROOT}/uploads && \
chown -R www-data:root ${DOC_ROOT}/uploads
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh