mirror of
https://github.com/alexandernicholson/s3panoramic.git
synced 2026-03-31 09:07:11 +09:00
feature: v1
This commit is contained in:
parent
6b1e6c945f
commit
6d8acb2752
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
# Use the official Deno image
|
||||
FROM denoland/deno:1.46.3
|
||||
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
# Copy dependency files
|
||||
COPY deno.json .
|
||||
COPY import_map.json* .
|
||||
|
||||
# Cache dependencies
|
||||
RUN deno cache --import-map=import_map.json src/main.ts
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Compile the app
|
||||
RUN deno cache src/main.ts
|
||||
|
||||
# Expose the port
|
||||
EXPOSE 3000
|
||||
|
||||
# Set environment variables with defaults
|
||||
ENV S3_BUCKET=""
|
||||
ENV S3_REGION=""
|
||||
ENV AWS_ACCESS_KEY_ID=""
|
||||
ENV AWS_SECRET_ACCESS_KEY=""
|
||||
|
||||
# Run the app
|
||||
CMD ["run", "--allow-net", "--allow-env", "--allow-read", "src/main.ts"]
|
||||
Reference in New Issue
Block a user