forked from mendersoftware/workflows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.worker
More file actions
23 lines (19 loc) · 828 Bytes
/
Dockerfile.worker
File metadata and controls
23 lines (19 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM golang:1.16.3-alpine3.12 as builder
RUN apk add --no-cache \
xz-dev \
musl-dev \
gcc
RUN mkdir -p /go/src/github.com/mendersoftware/workflows
COPY . /go/src/github.com/mendersoftware/workflows
RUN cd /go/src/github.com/mendersoftware/workflows && env CGO_ENABLED=1 go build
FROM alpine:3.13.5
RUN apk add --no-cache ca-certificates xz
COPY --from=builder /go/src/github.com/mendersoftware/workflows/workflows /usr/bin
WORKDIR /etc/workflows/definitions
COPY ./worker/config.yaml /etc/workflows/config.yaml
COPY ./worker/decommission_device.json .
COPY ./worker/deploy_device_configuration.json .
COPY ./worker/provision_device.json .
COPY ./worker/update_device_status.json .
COPY ./worker/update_device_inventory.json .
ENTRYPOINT ["/usr/bin/workflows", "--config", "/etc/workflows/config.yaml", "worker"]