doorman/Dockerfile

19 строки
341 B
Docker
Исходник Обычный вид История

2017-09-18 14:03:49 +03:00
FROM busybox:1.24.2
WORKDIR /app
RUN addgroup -g 10001 app && \
adduser -G app -u 10001 -D -h /app -s /sbin/nologin app
COPY version.json /app/version.json
COPY main /app/main
2017-09-21 17:06:15 +03:00
RUN touch /etc/policies.yaml # No policy by default.
2017-09-18 14:03:49 +03:00
USER app
2017-09-19 13:22:59 +03:00
ENV GIN_MODE release
ENV POLICIES /etc/policies.yaml
2017-09-20 15:58:34 +03:00
ENV PORT 8000
2017-09-19 13:22:59 +03:00
2017-09-18 16:30:57 +03:00
ENTRYPOINT ["/app/main"]