Files
DurpAPI/Dockerfile
2023-05-21 10:42:32 -05:00

23 lines
341 B
Docker

FROM registry.durp.info/golang:1.20-alpine
RUN chmod -R o=,g=rwX /go
RUN mkdir /app
RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "10001" \
"durp"
WORKDIR /app
COPY ./output/* .
RUN chown -R durp /app
USER durp
ENV GIN_MODE=release
EXPOSE 8080
CMD ["./main"]