replace compose with dockerfile
This commit is contained in:
17
compose.yaml
17
compose.yaml
@@ -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
13
dockerfile
Executable 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"]
|
||||
Reference in New Issue
Block a user