Skip to content

Commit

Permalink
add docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
mikenai committed Dec 21, 2022
1 parent 3aab9f5 commit bab99e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions users/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM golang:1.19-alpine3.17 as builder
RUN apk --no-cache upgrade && apk --no-cache add git make g++
WORKDIR /project/
COPY ./ /project/
RUN make build

FROM alpine
RUN apk --no-cache upgrade && apk --no-cache add ca-certificates
COPY --from=builder /project/bin/ /usr/local/bin/
WORKDIR /home/
CMD ["service"]

0 comments on commit bab99e6

Please sign in to comment.