mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-02 21:25:59 +02:00
introducing Docker
- Dockerfile - docker compose
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"]
|
17
docker-compose.yml
Normal file
17
docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user