- Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (12 loc) · 449 Bytes
/
Dockerfile
File metadata and controls
18 lines (12 loc) · 449 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM golang:1.14 AS build
ARG version=unknown
ARG build=unknown
ARG label=unknown
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -mod vendor -o /usr/local/bin/semaphore -ldflags "-X main.version=${version} -X main.build=${build} -X main.label=${label}" ./cmd/semaphore
FROM alpine
COPY --from=build /usr/local/bin/semaphore /bin/semaphore
RUN mkdir -p /etc/semaphore/
WORKDIR /etc/semaphore
ENTRYPOINT ["/bin/semaphore", "daemon"]