introducing Docker

- Dockerfile
- docker compose
This commit is contained in:
.notepunk. 2024-10-02 23:38:24 +02:00
parent 14128eb03d
commit 9debfe7a84
No known key found for this signature in database
GPG Key ID: 04FB9E03C6409130
2 changed files with 33 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"]

17
docker-compose.yml Normal file
View File

@ -0,0 +1,17 @@
version: '3.8'
services:
nostrdvm: # Name of the service
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- LNBITS_ADMIN_KEY = ${LNBITS_ADMIN_KEY}
- LNBITS_ADMIN_ID = ${LNBITS_WALLET_ID}
- LNBITS_HOST = ${LNBITS_HOST}
- NOSTDRESS_DOMAIN = ${NOSTDRESS_DOMAIN}
- NOSTR_BUILD_ACCOUNT_PK = ${NOSTR_BUILD_ACCOUNT_PK}
volumes:
- .:/app