bewcloud/Dockerfile

26 lines
489 B
Text
Raw Permalink Normal View History

FROM denoland/deno:ubuntu-2.6.10
2024-03-16 08:40:24 +00:00
EXPOSE 8000
RUN apt-get update && apt-get install -y make zip coreutils
2024-03-16 08:40:24 +00:00
WORKDIR /app
ADD . /app
# Prepare for any npm modules required "on the fly"
RUN mkdir -p /app/node_modules/.deno
2024-03-16 08:40:24 +00:00
RUN chown -R deno:deno /app
2024-03-16 08:40:24 +00:00
# Prefer not to run as root.
USER deno
# Build frontend components and CSS
RUN deno task build
2024-03-16 08:40:24 +00:00
# Compile the main app so that it doesn't need to be compiled each startup/entry.
RUN deno cache --reload main.ts
CMD ["task", "preview"]