1
0
mirror of https://github.com/XFox111/easylogon-web.git synced 2026-07-02 19:52:45 +03:00
Files
easylogon-web/Dockerfile
dependabot[bot] 7116efd19a build(deps): bump node from 25 to 26 in the docker group
Bumps the docker group with 1 update: node.


Updates `node` from 25 to 26

---
updated-dependencies:
- dependency-name: node
  dependency-version: '26'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: docker
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-05-16 22:10:16 +12:00

38 lines
896 B
Docker

# Use the official Node.js 20 image as the base image
FROM node:26 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 package-lock.json ./
# Install the app dependencies
RUN npm install
# Copy the app source code to the working directory
COPY . .
RUN npm run 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 npm run build
FROM steebchen/nginx-spa:stable AS runner
WORKDIR /app
COPY --from=builder /app/dist .
EXPOSE 80
HEALTHCHECK --interval=30s --timeout=3s CMD wget --no-verbose --tries=1 --spider http://localhost/ || exit 1
CMD ["nginx"]