This repository has been archived on 2022-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
Segfautils/Dockerfile
Odyssey346 11a156e4e3 clean go cache after compile (Docker)
Signed-off-by: Odyssey346 <odyssey346@disroot.org>
2022-07-31 22:28:51 +02:00

15 lines
274 B
Docker

FROM golang:1.18-alpine3.16
ENV SEGFAUTILITIES_PORT 6893
RUN mkdir /segfautilities
WORKDIR /segfautilities
COPY . /segfautilities/
RUN go mod download
EXPOSE 6893
RUN go build -o segfautilities
RUN chmod +x segfautilities
RUN go clean -modcache
CMD ["./segfautilities"]