multi arch Dockerfile

This commit is contained in:
Jean-Marc ANDRE 2023-03-20 22:15:13 +01:00
parent 0f8012c22e
commit 994b792d97
2 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,6 @@
# Build a small image
FROM --platform=linux/amd64 alpine:3
RUN apk add --no-cache su-exec restic postgresql-client
RUN apk add --no-cache su-exec restic
COPY ./bin/formolcli /usr/local/bin
# Command to run

8
Dockerfile.arm64 Normal file
View File

@ -0,0 +1,8 @@
# Build a small image
FROM --platform=linux/arm64 alpine:3
RUN apk add --no-cache su-exec restic postgresql-client
COPY ./bin/formolcli /usr/local/bin
# Command to run
ENTRYPOINT ["/usr/local/bin/formolcli"]
CMD ["--help"]