editView almost done
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
# Budowanie aplikacji
|
||||
FROM node:lts-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./app/package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY ./app .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Serwowanie za pomocą NGINX
|
||||
FROM nginx:alpine
|
||||
|
||||
# Skopiuj zbudowaną aplikację
|
||||
COPY --from=build /app/dist /usr/share/nginx/html
|
||||
|
||||
# Skopiuj własną konfigurację NGINX
|
||||
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user