|
Last change
on this file was 09e02d7, checked in by Nikola Sarafimov <sarafimov.nikola12345@…>, 3 days ago |
|
Final room reservation system implementation
|
-
Property mode
set to
100644
|
|
File size:
343 bytes
|
| Rev | Line | |
|---|
| [09e02d7] | 1 | FROM node:22-alpine AS build
|
|---|
| 2 |
|
|---|
| 3 | WORKDIR /app
|
|---|
| 4 |
|
|---|
| 5 | COPY package*.json ./
|
|---|
| 6 | RUN npm ci
|
|---|
| 7 |
|
|---|
| 8 | COPY . .
|
|---|
| 9 |
|
|---|
| 10 | ARG VITE_API_BASE_URL=/api
|
|---|
| 11 | ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
|---|
| 12 |
|
|---|
| 13 | RUN npm run build
|
|---|
| 14 |
|
|---|
| 15 | FROM nginx:1.27-alpine
|
|---|
| 16 |
|
|---|
| 17 | COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|---|
| 18 | COPY --from=build /app/dist /usr/share/nginx/html
|
|---|
| 19 |
|
|---|
| 20 | EXPOSE 80
|
|---|
| 21 |
|
|---|
| 22 | CMD ["nginx", "-g", "daemon off;"] |
|---|
Note:
See
TracBrowser
for help on using the repository browser.