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
|
|
@ -2,7 +2,7 @@ name: backend
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: ['**']
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
|
|
|
||||||
23
dockerfile
23
dockerfile
|
|
@ -1,21 +1,22 @@
|
||||||
FROM python:3.11-slim
|
FROM python:3.11-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y curl build-essential \
|
RUN apt-get update && apt-get install -y curl build-essential \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& npm install -g npm@latest \
|
&& npm install -g npm@latest \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
WORKDIR /app/judd
|
RUN cd judd && npm ci
|
||||||
RUN 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