ci: update to use new build method
This commit is contained in:
parent
29564f0e0b
commit
f3f5335639
2 changed files with 13 additions and 12 deletions
23
dockerfile
23
dockerfile
|
|
@ -1,21 +1,22 @@
|
|||
FROM python:3.11-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y curl build-essential \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& npm install -g npm@latest \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& npm install -g npm@latest \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
WORKDIR /app/judd
|
||||
RUN npm ci
|
||||
RUN cd judd && npm ci
|
||||
|
||||
WORKDIR /app
|
||||
RUN pip install --no-cache-dir .
|
||||
|
||||
CMD ["python", "main.py"]
|
||||
RUN touch .env
|
||||
|
||||
# uses default
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["splatnet"]
|
||||
Loading…
Reference in a new issue