1
0
mirror of https://gitlab.com/psono/psono-client synced 2025-04-19 03:22:16 +03:00
psono-client/Dockerfile
Sascha Pfeiffer 2fc73d46db added option to set the config.json with environment variables
Signed-off-by: Sascha Pfeiffer <sascha.pfeiffer@psono.com>
2020-05-28 18:39:20 +02:00

17 lines
468 B
Docker

FROM psono-docker.jfrog.io/nginx:alpine
LABEL maintainer="Sascha Pfeiffer <sascha.pfeiffer@psono.com>"
RUN apk upgrade --no-cache \
&& apk add --no-cache curl
COPY ./configs/nginx.conf /etc/nginx/nginx.conf
COPY ./configs/default.conf /etc/nginx/conf.d/default.conf
COPY ./configs/cmd.sh /root/cmd.sh
COPY ./build/webclient /usr/share/nginx/html/
HEALTHCHECK --interval=30s --timeout=3s \
CMD curl -f http://localhost/ || exit 1
CMD ["/bin/sh", "/root/cmd.sh"]