update dockerfile

This commit is contained in:
kongfei 2023-04-25 11:54:29 +08:00
parent 36bca795fa
commit 23156552db
3 changed files with 18 additions and 8 deletions

View File

@ -115,7 +115,7 @@ dockers:
goarch: arm64
ids:
- build
dockerfile: docker/Dockerfile.goreleaser
dockerfile: docker/Dockerfile.goreleaser.arm64
extra_files:
- pub
- etc

View File

@ -1,15 +1,12 @@
FROM --platform=$BUILDPLATFORM python:3-slim
FROM --platform=$TARGETPLATFORM python:3-slim
WORKDIR /app
ADD n9e /app
ADD etc /app
RUN mkdir -p /app/integrations
ADD integrations /app/integrations/
ADD http://download.flashcat.cloud/wait /wait
RUN mkdir -p /app/pub && chmod +x /wait
ADD pub /app/pub/
RUN chmod +x n9e
ADD integrations /app
ADD --chmod=755 https://github.com/ufoscout/docker-compose-wait/releases/download/2.11.0/wait_x86_64 /wait
ADD pub /app
EXPOSE 17000

View File

@ -0,0 +1,13 @@
FROM --platform=$BUILDPLATFORM python:3-slim
WORKDIR /app
ADD n9e /app
ADD etc /app
ADD integrations /app
ADD --chmod=755 https://github.com/ufoscout/docker-compose-wait/releases/download/2.11.0/wait_aarch64 /wait
ADD pub /app
EXPOSE 17000
CMD ["/app/n9e", "-h"]