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# Switch to deno user for better security 16USER deno 17 18# Run the build step 19RUN deno task build 20 21EXPOSE 8000 22 23# Run the application 24CMD ["run", "-A", "main.ts"]