test-automation / Dockerfile
tester-dev's picture
Update Dockerfile
27e9499 verified
Raw History Blame
562 Bytes
FROM testenv591/backend-api:19
USER root
RUN apk add --no-cache nginx
RUN mkdir -p /var/cache/nginx \
/var/log/nginx \
/var/lib/nginx/logs \
/var/lib/nginx/tmp \
/run
RUN chown -R 1000:1000 /var/cache/nginx \
/var/log/nginx \
/var/lib/nginx \
/run
RUN touch /run/nginx.pid && chown 1000:1000 /run/nginx.pid
COPY --chown=root nginx.conf /etc/nginx/nginx.conf
USER 1000
CMD ["sh", "-c", "nginx -g 'daemon off;' & exec npm start"]