Docker и хостинг
This commit is contained in:
1 parent
53428c5415
commit
47e7271224
5 files changed
+6714
-1
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
FROM node:23.11.1-alpine3.22 as build
|
||||
|
||||
WORKDIR ~/app
|
||||
|
||||
COPY ./ ./
|
||||
RUN npm i
|
||||
|
||||
COPY src tsconfig.json webpack.config.js @types ./
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:latest
|
||||
|
||||
COPY --from=build ~/app/dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE 8080:80
|
||||
Reference in new issue
Block a user