💾 Archived View for source.community › Fuwn › space › raw › main › Dockerfile captured on 2023-06-14 at 14:20:00.
⬅️ 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"]