This repository has been archived on 2025-06-18. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
casino/frontend/.docker/Dockerfile
jank 69447d8fcf
Some checks failed
CI / Get Changed Files (pull_request) Successful in 8s
Setup Gitea Tea CLI / setup-and-login (pull_request) Failing after 11s
CI / Checkstyle Main (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / Backend Tests (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Successful in 1m0s
CI / prettier (pull_request) Successful in 2m41s
CI / oxlint (pull_request) Successful in 2m43s
CI / eslint (pull_request) Successful in 2m48s
CI / test-build (pull_request) Successful in 49s
fix: Fix frontend build bc apperantly they changed the node version
2025-06-01 11:03:20 +02:00

28 lines
753 B
Docker

FROM oven/bun:debian AS build
WORKDIR /app
RUN apt-get update -y && \
apt-get install -y --no-install-recommends curl ca-certificates gnupg && \
curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
apt-get install -y --no-install-recommends nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV NODE_ENV=production
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run build
FROM nginx:alpine AS production
RUN rm /etc/nginx/conf.d/default.conf
COPY .docker/casino.conf /etc/nginx/templates/nginx.conf.template
COPY .docker/entrypoint.sh /docker-entrypoint.d/40-custom-config-env.sh
COPY --from=build /app/dist/casino /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]