App running in compose

This commit is contained in:
fedyna-k
2025-01-21 10:04:45 +01:00
parent 6ddd159259
commit 1d50b4d1b6
2 changed files with 21 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM denoland/deno:alpine
WORKDIR /app
COPY . .
RUN deno cache main.ts
RUN deno task build
USER deno
EXPOSE 443
CMD ["run", "-A", "main.ts"]
+9
View File
@@ -0,0 +1,9 @@
services:
app:
container_name: deno_fresh_app
build: .
ports:
- "443:443"
volumes:
- .:/app
command: deno run -A main.ts