bewcloud/Dockerfile
Bruno Bernardino 986573cfc9
Upgrade Fresh to v2
Also upgrade all dependencies, make some unnecessary, and some other small tweaks.

Because this has a big potential of unexpectedly breaking things, I'm doing a "breaking release", v3.
2025-09-26 18:48:02 +01:00

28 lines
555 B
Docker

FROM denoland/deno:ubuntu-2.5.1
EXPOSE 8000
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
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 --reload main.ts
# Allow the crons to start
ENV START_BEWCLOUD_CRONS=true
CMD ["run", "--allow-all", "main.ts"]