get Dockerfile to somewhat work

This commit is contained in:
2025-12-31 21:02:13 -08:00
parent 683449ba1a
commit 9379545db4
3 changed files with 6 additions and 2 deletions

View File

@@ -1,8 +1,6 @@
FROM docker FROM docker
WORKDIR / WORKDIR /
COPY composer /composer COPY composer /composer
RUN mkdir -p store/stack
RUN touch store/stack/.env
RUN apk update RUN apk update
RUN apk add --no-cache git python3 py3-pip RUN apk add --no-cache git python3 py3-pip
RUN pip3 install --no-cache-dir --break-system-packages -r composer/requirements.txt RUN pip3 install --no-cache-dir --break-system-packages -r composer/requirements.txt

View File

@@ -13,6 +13,11 @@ logger.addHandler(logging.StreamHandler(sys.stdout))
class Setup: class Setup:
@staticmethod
def populate_store():
Path("store/stack").mkdir(parents=True, exist_ok=True)
Path("store/stack/.env").touch(exist_ok=True)
@staticmethod @staticmethod
def create_symlink(): def create_symlink():
host_data_env = getenv("HOST_DATA_PATH", None) host_data_env = getenv("HOST_DATA_PATH", None)

View File

@@ -3,6 +3,7 @@ import logging
from os import getenv from os import getenv
import time import time
Setup.populate_store()
Setup.create_symlink() Setup.create_symlink()
composer = Composer(getenv("REMOTE_REPO")) composer = Composer(getenv("REMOTE_REPO"))
while True: while True: