Try a simpler dockerfile

This commit is contained in:
Bruno Bernardino 2025-09-26 20:20:13 +01:00
parent f68ae9f354
commit 0e1544b07b
No known key found for this signature in database
GPG key ID: D1B0A69ADD114ECE
2 changed files with 2 additions and 14 deletions

View file

@ -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

View file

@ -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