mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-03-17 21:31:52 +01:00
introducing Docker
- Dockerfile - docker compose
This commit is contained in:
parent
14128eb03d
commit
9debfe7a84
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
|
Loading…
x
Reference in New Issue
Block a user