Merge pull request #32 from notepunk/main

introducing Docker to nostrdvm
This commit is contained in:
dbth
2024-10-03 00:02:42 +02:00
committed by GitHub
2 changed files with 29 additions and 0 deletions

16
Dockerfile Normal file
View File

@@ -0,0 +1,16 @@
# Use the official Python 3.12 image from the Docker Hub
FROM python:3.12-slim
# Set the working directory in the container
WORKDIR /app
RUN pip install setuptools
# Copy the rest of the application code into the container
COPY . .
#RUN pip install nostr-dvm
RUN python setup.py install
# Specify the command to run your application
CMD ["python3", "main.py"]

13
docker-compose.yml Normal file
View File

@@ -0,0 +1,13 @@
version: '3.8'
services:
nostrdvm: # Name of the service
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
env_file:
- .env
volumes:
- .:/app