diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index 0ab708f..f1ead8a 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Log in to the Container registry uses: docker/login-action@v3 diff --git a/Dockerfile b/Dockerfile index b8600d1..aebaea4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,20 +6,8 @@ RUN apt-get update && apt-get install -y make WORKDIR /app -# These steps will be re-run upon each file change in your working directory: -ADD . /app - -RUN rm -fr node_modules _fresh - -# Build fresh +COPY . . RUN deno task build - -RUN chown -R deno:deno /app /deno-dir - -# Prefer not to run as root. -USER deno - -# Compile the main app so that it doesn't need to be compiled each startup/entry. RUN deno cache _fresh/server.js # Allow the crons to start