Skip to content

Commit

Permalink
Merge pull request #7 from hotosm/feat/set-up-frontend
Browse files Browse the repository at this point in the history
Fix: Docker image build had a missing directory
  • Loading branch information
katporks authored Dec 6, 2023
2 parents ebc3953 + 2b2b376 commit e91a27d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e91a27d

Please sign in to comment.