Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sas1024 committed Feb 15, 2023
1 parent 60c56ac commit 18ba111
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM golang:1.18-alpine AS builder
COPY . /build
RUN cd /build && go install -mod=mod ./cmd/brokersrv

FROM alpine:latest

ENV TZ=Europe/Moscow
RUN apk --no-cache add ca-certificates tzdata && cp -r -f /usr/share/zoneinfo/$TZ /etc/localtime

COPY --from=builder /go/bin/brokersrv .

ENTRYPOINT ["/brokersrv"]
EXPOSE 8071

0 comments on commit 18ba111

Please sign in to comment.