~dricottone/container-images

ref: e61b929e86a9f7fb86ddc619e5d2a25ced8d3d28 container-images/simple-chat/Dockerfile -rw-r--r-- 332 bytes
e61b929eDominic Ricottone Okay now really things are updated 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM docker.io/library/golang:alpine as builder
WORKDIR /app
COPY simple-chat-v1.0.1/server/* ./

RUN apk add make
RUN make clean && make go.mod && make server

FROM docker.io/library/alpine:latest
WORKDIR /app
COPY --from=builder /app/server /app/server

RUN adduser -H -D -u 1001 me
USER me:me

EXPOSE 8080
CMD [ "/app/server" ]