mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-09-27 18:06:23 +02:00
Merge pull request #32 from notepunk/main
introducing Docker to nostrdvm
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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
13
docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user