a few fixes
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user