mirror of
https://github.com/bewcloud/bewcloud.git
synced 2026-03-11 08:54:49 +00:00
* Declare `deno task execute-with-permissions` task specifying all the permissions actually needed and alias all other tasks through that Also add `migrate-db` task to the Deno configuration and use that in the `Makefile`, so that the Makefile is fully optional, and swap the meanings of the `start` and `preview` tasks, so that `start` is for production while `preview` is for development. * Keep task names consistent (no breaking changes) * Reorder tasks * Remove empty lines * Use correct task in Dockerfile * Bring back start (no breaking changes) * Update readme with preview command * Update necessary permissions for running locally and in docker --------- Co-authored-by: Bruno Bernardino <me@brunobernardino.com>
23 lines
454 B
Docker
23 lines
454 B
Docker
FROM denoland/deno:ubuntu-2.5.6
|
|
|
|
EXPOSE 8000
|
|
|
|
RUN apt-get update && apt-get install -y make zip
|
|
|
|
WORKDIR /app
|
|
|
|
# These steps will be re-run upon each file change in your working directory:
|
|
ADD . /app
|
|
|
|
# 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 ["task", "preview"]
|