mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
21 lines
No EOL
321 B
Docker
21 lines
No EOL
321 B
Docker
# client
|
|
|
|
FROM node:18 AS build
|
|
|
|
WORKDIR /usr/src/app/client
|
|
|
|
COPY ./package*.json ./
|
|
|
|
COPY ./ .
|
|
|
|
RUN npm install
|
|
|
|
RUN npm run build
|
|
|
|
ENV PORT=5173
|
|
EXPOSE ${PORT}
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \
|
|
CMD curl -f http://localhost:${PORT} || exit 1
|
|
|
|
CMD [ "npm", "run", "preview" ] |