FROM denoland/deno:2.0.6

# The port that your application listens to.
EXPOSE 1993

WORKDIR /deno

RUN chown -R deno:deno /deno

USER deno

# These steps will be re-run upon each file change in your working directory:

COPY . .

RUN deno install 

# Compile the main app so that it doesn't need to be compiled each startup/entry.

CMD deno task build:css && cp -rT ./dist/ /static/
