mirror of
https://github.com/XFox111/easylogon-web.git
synced 2026-07-02 19:52:45 +03:00
b8026747d0
Bumps node from 20 to 24. --- updated-dependencies: - dependency-name: node dependency-version: '24' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
36 lines
787 B
Docker
36 lines
787 B
Docker
# Use the official Node.js 20 image as the base image
|
|
FROM node:24 AS builder
|
|
|
|
ARG SIGNALR_URL=http://localhost:8080/ws
|
|
ARG ENDPOINT_URL=http://localhost:8080/send
|
|
ARG COMMIT=devbuild
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy the package.json and yarn.lock files to the working directory
|
|
COPY package.json ./
|
|
COPY yarn.lock ./
|
|
|
|
# Install the app dependencies
|
|
RUN yarn install
|
|
RUN yarn audit
|
|
|
|
# Copy the app source code to the working directory
|
|
COPY . .
|
|
RUN yarn lint
|
|
|
|
RUN echo "VITE_SIGNALR_URL=${SIGNALR_URL}" >> .env
|
|
RUN echo "VITE_ENDPOINT_URL=${ENDPOINT_URL}" >> .env
|
|
RUN echo "VITE_COMMIT=${COMMIT}" >> .env
|
|
|
|
# Build the app
|
|
RUN yarn build
|
|
|
|
FROM steebchen/nginx-spa:stable AS runner
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/dist .
|
|
EXPOSE 80
|
|
CMD ["nginx"]
|