Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Dockerfile #87

Merged
merged 5 commits into from
Mar 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading