mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
Try a simpler dockerfile
This commit is contained in:
parent
f68ae9f354
commit
0e1544b07b
2 changed files with 2 additions and 14 deletions
2
.github/workflows/build-docker-image.yml
vendored
2
.github/workflows/build-docker-image.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
14
Dockerfile
14
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue