1 2 3 4 5 6 7 8 9 10 11 12
FROM golang:alpine WORKDIR /app COPY server/* ./ RUN go mod download RUN go build -o /app/server-bin EXPOSE 8080 RUN adduser -H -D -u 1001 me USER me:me CMD [ "/app/server-bin" ]