Little cleaning and fixes
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# EOL normalization
|
||||||
|
* text=auto
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"ExpandedNodes": [
|
|
||||||
""
|
|
||||||
],
|
|
||||||
"PreviewInSolutionExplorer": false
|
|
||||||
}
|
|
||||||
Binary file not shown.
+5
-5
@@ -1,23 +1,23 @@
|
|||||||
# Base Node Environment.
|
# Base Node Environment.
|
||||||
FROM node:21.7-alpine3.19 as app-base
|
FROM node:21.7-alpine3.19 AS app-base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ENV PATH /app/node_modules/.bin:$PATH
|
ENV PATH=/app/node_modules/.bin:$PATH
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
COPY package-lock.json ./
|
COPY package-lock.json ./
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
# Dev environment.
|
# Dev environment.
|
||||||
FROM app-base as final-dev
|
FROM app-base AS final-dev
|
||||||
RUN npm install
|
RUN npm install
|
||||||
ENV CHOKIDAR_USEPOLLING=true
|
ENV CHOKIDAR_USEPOLLING=true
|
||||||
CMD ["npm", "run", "dev"]
|
CMD ["npm", "run", "dev"]
|
||||||
|
|
||||||
# Build app for production.
|
# Build app for production.
|
||||||
FROM app-base as builder
|
FROM app-base AS builder
|
||||||
RUN npm ci && npm run build
|
RUN npm ci && npm run build
|
||||||
|
|
||||||
# production environment
|
# 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 --from=builder /app/dist /usr/share/nginx/html
|
||||||
COPY /public /usr/share/nginx/html/public
|
COPY /public /usr/share/nginx/html/public
|
||||||
COPY scripts/env.sh /docker-entrypoint.d/env.sh
|
COPY scripts/env.sh /docker-entrypoint.d/env.sh
|
||||||
|
|||||||
Reference in New Issue
Block a user