depfix-dockernode4
This commit is contained in:
parent
ee79091e35
commit
8489320ab1
|
@ -16,15 +16,12 @@ RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
COPY package.json package-lock.json ./
|
||||||
|
RUN npm ci && npm run build
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Установка зависимостей и сборка фронта (если есть package.json)
|
|
||||||
COPY package.json package-lock.json ./
|
|
||||||
RUN npm ci && npm run build
|
|
||||||
RUN cp -r dist .
|
|
||||||
|
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user