mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
24 lines
451 B
Text
24 lines
451 B
Text
|
|
FROM denoland/deno:alpine-1.41.0
|
||
|
|
|
||
|
|
EXPOSE 8000
|
||
|
|
|
||
|
|
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
|
||
|
|
|
||
|
|
CMD ["run", "--allow-all", "main.ts"]
|