Skip to content

Commit

Permalink
Merge pull request #87 from freifunkMUC/GoliathLabs-patch-1
Browse files Browse the repository at this point in the history
fix: Dockerfile
  • Loading branch information
GoliathLabs authored Mar 30, 2024
2 parents 0e5cc14 + cee6982 commit 1dc60c1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
### Build stage for the website frontend
FROM --platform=$BUILDPLATFORM node:20-bullseye-slim as build
FROM --platform=$BUILDPLATFORM node:20-bookworm-slim as build
RUN apt-get update && \
apt-get install -y python
apt-get install -y python3
WORKDIR /code
COPY . ./
RUN npm install
RUN npm run build

FROM nginx:1.25.3-alpine
FROM nginx:1.25.4-alpine
COPY --from=build /code/build/ /usr/share/nginx/html
COPY --from=build /code/config.json /usr/share/nginx/html/config.json

EXPOSE 80
COPY --from=build /code/config.example.json /usr/share/nginx/html/
EXPOSE 80

0 comments on commit 1dc60c1

Please sign in to comment.