14 lines
312 B
Docker
14 lines
312 B
Docker
|
FROM golang:1.21
|
||
|
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
COPY go.mod go.sum ./
|
||
|
RUN go mod download && go mod verify
|
||
|
COPY main.go main.go
|
||
|
RUN go build -v -o /usr/local/bin/app ./main.go
|
||
|
|
||
|
ENV PORT_LISTENING=8080
|
||
|
ENV JSON_LOCATION=https://git.altarik.fr/Altarik/launcher_json/raw/branch/master/launcher.json
|
||
|
EXPOSE 8080
|
||
|
CMD ["app"]
|