setup basic dockerfile

master
lza_menace 2 years ago
parent 34dbe360df
commit 2e98706a6f

@ -6,18 +6,20 @@ x-log-config: &log-config
max-size: "50m" max-size: "50m"
max-file: "5" max-file: "5"
services: services:
# monero-lws-admin: lws-web:
# container_name: monero-lws-admin container_name: lws-web
# build: build:
# context: monero-lws-admin context: lws-web
# dockerfile: Dockerfile dockerfile: Dockerfile
# restart: unless-stopped restart: unless-stopped
# depends_on: depends_on:
# - monero-lws - monero-lws
# environment: environment:
# NUXT_LWS_API_KEY: a0b03590ee822d76e4a62c5d02e6dac9a5302a67dcb2a82ba5f79687f412df08 NUXT_LWS_API_KEY: ayoo
# NUXT_LWS_ADMIN_URL: http://127.0.0.1:8080 NUXT_LWS_ADMIN_URL: http://127.0.0.1:8080
# <<: *log-config ports:
- 127.0.0.1:5000:5000
<<: *log-config
monero-lws: monero-lws:
container_name: monero-lws container_name: monero-lws
build: build:

@ -0,0 +1,11 @@
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install -y python3 python3-venv
WORKDIR /srv/lws-web
COPY . .
RUN python3 -m venv .venv
RUN .venv/bin/pip install poetry
RUN .venv/bin/poetry install
CMD "/srv/lws-web/.venv/bin/poetry run start"
Loading…
Cancel
Save