-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (18 loc) · 895 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Note that the following build needs binaries to be precompiled for the target
# architectures. Use the `build-all` just recipies to build for all targets.
FROM alpine as arm-builder
COPY ./target/armv7-unknown-linux-musleabihf/release/cocogitto_github_app /cocogitto_github_app
FROM alpine as arm64-builder
COPY ./target/aarch64-unknown-linux-musl/release/cocogitto_github_app /cocogitto_github_app
FROM alpine as amd64-builder
COPY ./target/x86_64-unknown-linux-musl/release/cocogitto_github_app /cocogitto_github_app
FROM ${TARGETARCH}-builder AS builder
FROM alpine
MAINTAINER Paul Delafosse "[email protected]"
RUN addgroup -S cocogitto && adduser -S cocogitto -G cocogitto
USER cocogitto
# Install binaries
COPY --from=builder /cocogitto_github_app /usr/bin/cocogitto_github_app
EXPOSE 8080
COPY ./config.example.toml ./config.toml
ENTRYPOINT ["cocogitto_github_app"]