Skip to content

Commit e91a27d

Browse files
authored
Merge pull request #7 from hotosm/feat/set-up-frontend
Fix: Docker image build had a missing directory
2 parents ebc3953 + 2b2b376 commit e91a27d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Dockerfile

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ ARG PYTHON_IMG_TAG=3.11
22
ARG NODE_IMG_TAG=20.5.1
33

44
FROM node:${NODE_IMG_TAG}-bookworm-slim as frontend-base
5-
WORKDIR /app
6-
COPY ./frontend ./frontend
7-
RUN cd frontend && npm install
8-
RUN cd frontend && npm run build
5+
WORKDIR /app/frontend
6+
COPY ./frontend/package*.json ./
7+
RUN npm install
8+
COPY ./frontend ./
9+
COPY .. /app
10+
RUN npm run build
911

1012
# Define the base stage
1113
FROM docker.io/python:${PYTHON_IMG_TAG}-slim-bookworm as base

0 commit comments

Comments
 (0)