From 2b2b3769bc3a35405f5b12e92e051d62b52a6871 Mon Sep 17 00:00:00 2001 From: Kat Olaguer Date: Wed, 6 Dec 2023 03:00:49 -0800 Subject: [PATCH] Fixed missing folder --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1bca3f8..6ea505d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,12 @@ ARG PYTHON_IMG_TAG=3.11 ARG NODE_IMG_TAG=20.5.1 FROM node:${NODE_IMG_TAG}-bookworm-slim as frontend-base -WORKDIR /app -COPY ./frontend ./frontend -RUN cd frontend && npm install -RUN cd frontend && npm run build +WORKDIR /app/frontend +COPY ./frontend/package*.json ./ +RUN npm install +COPY ./frontend ./ +COPY .. /app +RUN npm run build # Define the base stage FROM docker.io/python:${PYTHON_IMG_TAG}-slim-bookworm as base