Little cleaning and fixes

This commit is contained in:
2024-08-12 20:56:14 +02:00
parent d3358c7c58
commit d4458e8f00
6 changed files with 7 additions and 11 deletions
+2
View File
@@ -0,0 +1,2 @@
# EOL normalization
* text=auto
Binary file not shown.
-6
View File
@@ -1,6 +0,0 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
BIN
View File
Binary file not shown.
+5 -5
View File
@@ -1,23 +1,23 @@
# Base Node Environment.
FROM node:21.7-alpine3.19 as app-base
FROM node:21.7-alpine3.19 AS app-base
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
ENV PATH=/app/node_modules/.bin:$PATH
COPY package.json ./
COPY package-lock.json ./
COPY . ./
# Dev environment.
FROM app-base as final-dev
FROM app-base AS final-dev
RUN npm install
ENV CHOKIDAR_USEPOLLING=true
CMD ["npm", "run", "dev"]
# Build app for production.
FROM app-base as builder
FROM app-base AS builder
RUN npm ci && npm run build
# production environment
FROM nginx:stable-alpine as final-prod
FROM nginx:stable-alpine AS final-prod
COPY --from=builder /app/dist /usr/share/nginx/html
COPY /public /usr/share/nginx/html/public
COPY scripts/env.sh /docker-entrypoint.d/env.sh