Leaflet Blog in Deno Fresh
1FROM denoland/deno:ubuntu
2
3USER root
4
5# Create and set up directory
6WORKDIR /app
7RUN chown -R deno:deno /app
8
9# Copy files at build time
10COPY . /app/
11
12# Ensure Deno user has write permissions
13RUN chown -R deno:deno /app
14
15# Run the build step
16RUN deno task build
17
18EXPOSE 8000
19
20# Run the application
21CMD ["run", "-A", "main.ts"]