Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Borovikov committed Nov 10, 2021
1 parent 8af894f commit 4d1252c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM golang:1.17-alpine as backend
ENV CGO_ENABLED=0

ADD . /build
WORKDIR /build

RUN apk add --no-cache --update git tzdata ca-certificates
RUN go build -o /build/secretable -ldflags "-s -w" /build/cmd/secretable.go

FROM alpine
RUN mkdir /etc/secretable
COPY --from=backend /build/secretable /srv/secretable

WORKDIR /srv
ENTRYPOINT ["/srv/secretable", "-c", "/etc/secretable/config.yaml"]

0 comments on commit 4d1252c

Please sign in to comment.