diff --git a/Dockerfile b/Dockerfile index 1161e1b99..dc7a100f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,9 +8,12 @@ RUN apk add --update --no-cache \ WORKDIR /app -COPY . . +COPY package*.json ./ RUN npm install + +COPY . . + RUN npm run build EXPOSE 3000 diff --git a/docker-compose.yml b/docker-compose.yml index 7a86bf734..541ed08d6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - "./plugins:/app/plugins" - "./static:/app/static" - "./store:/app/store" + - "./components:/app/components" ports: - "3000:3000" command: "npm run dev"