sounds, better files
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM node:18 AS build
|
||||
|
||||
WORKDIR /srv
|
||||
|
||||
COPY ./package.json ./package-lock.json /srv/
|
||||
RUN npm install
|
||||
COPY tsconfig.json tsconfig.app.json tsconfig.node.json vite.config.ts /srv/
|
||||
|
||||
COPY src /srv/src
|
||||
COPY public /srv/public
|
||||
COPY map /srv/map
|
||||
COPY ./index.html /srv/
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:latest
|
||||
|
||||
COPY --from=build /srv/dist /usr/share/nginx/html
|
||||
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user