debug building issue of docker test

This commit is contained in:
Parsa Nazer
2025-03-08 20:19:20 +03:30
parent 2577237a7b
commit 69c947122d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ ENV PYTHONUNBUFFERED 1
WORKDIR /app WORKDIR /app
COPY requirements.txt /app/ COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt RUN pip install -r requirements.txt
COPY . /app/ COPY . /app/
+2 -2
View File
@@ -1,11 +1,11 @@
FROM node:20-alpine as build-stage FROM node:20-alpine AS build-stage
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install --force RUN npm install --force
COPY . . COPY . .
RUN npm run build RUN npm run build
FROM node:20-alpine as production-stage FROM node:20-alpine AS production-stage
WORKDIR /app WORKDIR /app
COPY --from=build-stage /app /app COPY --from=build-stage /app /app
EXPOSE 3000 EXPOSE 3000