From 2e98706a6f98da1b2e0efd0e3e6c8bfdf22656b7 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Tue, 2 May 2023 23:53:48 -0700 Subject: [PATCH] setup basic dockerfile --- docker-compose.yaml | 26 ++++++++++++++------------ lws-web/Dockerfile | 11 +++++++++++ 2 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 lws-web/Dockerfile diff --git a/docker-compose.yaml b/docker-compose.yaml index 8884ef0..bebf7a7 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -6,18 +6,20 @@ x-log-config: &log-config max-size: "50m" max-file: "5" services: - # monero-lws-admin: - # container_name: monero-lws-admin - # build: - # context: monero-lws-admin - # dockerfile: Dockerfile - # restart: unless-stopped - # depends_on: - # - monero-lws - # environment: - # NUXT_LWS_API_KEY: a0b03590ee822d76e4a62c5d02e6dac9a5302a67dcb2a82ba5f79687f412df08 - # NUXT_LWS_ADMIN_URL: http://127.0.0.1:8080 - # <<: *log-config + lws-web: + container_name: lws-web + build: + context: lws-web + dockerfile: Dockerfile + restart: unless-stopped + depends_on: + - monero-lws + environment: + NUXT_LWS_API_KEY: ayoo + NUXT_LWS_ADMIN_URL: http://127.0.0.1:8080 + ports: + - 127.0.0.1:5000:5000 + <<: *log-config monero-lws: container_name: monero-lws build: diff --git a/lws-web/Dockerfile b/lws-web/Dockerfile new file mode 100644 index 0000000..797be38 --- /dev/null +++ b/lws-web/Dockerfile @@ -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"