replace compose with dockerfile

This commit is contained in:
fzzinchemical
2025-03-25 21:48:37 +01:00
parent 279f0c3bb9
commit 650b78d298
2 changed files with 13 additions and 17 deletions

View File

@@ -1,17 +0,0 @@
services:
deno:
image: denoland/deno:alpine
build: .
ports:
- "6969:6969"
networks:
- my_network
working_dir: /app
volumes:
- ./:/app # shared deno configuration
command: deno task admin
networks:
my_network:
driver: bridge

13
dockerfile Executable file
View File

@@ -0,0 +1,13 @@
# Use the official Deno image as the base image
FROM denoland/deno:alpine
# Set the working directory inside the container
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Expose the port that the application will run on
EXPOSE 6969
# Set the default command to run the Deno task
CMD ["deno", "task", "admin"]