a few fixes

This commit is contained in:
2025-07-30 13:36:00 +02:00
parent be72715cfe
commit d2985382f4
6 changed files with 39 additions and 321 deletions

View File

@@ -1,12 +1,9 @@
FROM denoland/deno:alpine-1.48.0
FROM denoland/deno:alpine-2.4.2
# Set working directory
WORKDIR /app
# Copy only necessary files
COPY deno.json .
COPY . .
COPY static/img/ static/img/
# Cache dependencies
RUN deno cache app.ts
@@ -21,4 +18,4 @@ USER appuser
# Start application
# Note: Set SERVICE_DOMAIN environment variable to configure your domain
# Example: docker run -e SERVICE_DOMAIN=my-ipv4-service.example.com ...
CMD ["run", "--allow-net", "--allow-read", "src/app.ts"]
CMD ["run", "--allow-net", "--allow-env=SERVICE_DOMAIN", "--allow-read=./static,./views", "app.ts"]