-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathDockerfile_cross_postgres
More file actions
28 lines (20 loc) · 823 Bytes
/
Dockerfile_cross_postgres
File metadata and controls
28 lines (20 loc) · 823 Bytes
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
28
FROM alpine:3 AS cache
RUN apk add -U --no-cache ca-certificates
FROM scratch as base
COPY ./static/ /app/static
COPY ./migrations /app/migrations
COPY ./db /app/db
WORKDIR /app/
FROM base as amd64
COPY --from=cache /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./target/x86_64-unknown-linux-musl/release/podfetch /app/podfetch
FROM base as armv7
COPY --from=cache /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./target/armv7-unknown-linux-musleabihf/release/podfetch /app/podfetch
FROM base as arm64
COPY --from=cache /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY ./target/aarch64-unknown-linux-musl/release/podfetch /app/podfetch
FROM ${TARGETARCH}${TARGETVARIANT} as final
LABEL org.opencontainers.image.source="https://github.com/SamTV12345/PodFetch"
EXPOSE 8000
CMD ["./podfetch"]