💾 Archived View for source.community › Fuwn › space › raw › main › Dockerfile captured on 2023-01-29 at 03:45:10.
⬅️ Previous capture (2022-03-01)
-=-=-=-=-=-=-
FROM golang:1.16.7-alpine3.14 AS build_base RUN apk add --no-cache git WORKDIR /tmp/space COPY go.mod . COPY go.sum . RUN go mod download COPY . . RUN go build -o ./out/space . FROM alpine:3.14 RUN apk add ca-certificates COPY --from=build_base /tmp/space/out/space /app/space WORKDIR /app EXPOSE 1965 CMD ["./space"]