Dockerfile

Dockerfile
This commit is contained in:
Kroese 2023-05-12 13:52:53 +02:00 committed by GitHub
commit a15eec17af
2 changed files with 6 additions and 7 deletions

View File

@ -11,6 +11,7 @@ on:
- '.dockerignore' - '.dockerignore'
- '.github/**' - '.github/**'
- '.github/workflows/**' - '.github/workflows/**'
- 'Dockerfile'
jobs: jobs:
shellcheck: shellcheck:

View File

@ -30,17 +30,15 @@ RUN apt-get update && apt-get -y upgrade && \
netcat-openbsd \ netcat-openbsd \
ca-certificates \ ca-certificates \
qemu-system-x86 \ qemu-system-x86 \
&& apt-get clean && apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY run/*.sh /run/ COPY run/*.sh /run/
COPY agent/*.sh /agent/ COPY agent/*.sh /agent/
COPY --from=builder /qemu-host.bin /run/host.bin COPY --from=builder /qemu-host.bin /run/host.bin
RUN ["chmod", "+x", "/run/run.sh"] RUN chmod +x /run/*.sh && chmod +x /run/*.bin
RUN ["chmod", "+x", "/run/check.sh"]
RUN ["chmod", "+x", "/run/server.sh"]
RUN ["chmod", "+x", "/run/host.bin"]
VOLUME /storage VOLUME /storage