source: frontend/Dockerfile

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
RevLine 
[09e02d7]1FROM node:22-alpine AS build
2
3WORKDIR /app
4
5COPY package*.json ./
6RUN npm ci
7
8COPY . .
9
10ARG VITE_API_BASE_URL=/api
11ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
12
13RUN npm run build
14
15FROM nginx:1.27-alpine
16
17COPY nginx.conf /etc/nginx/conf.d/default.conf
18COPY --from=build /app/dist /usr/share/nginx/html
19
20EXPOSE 80
21
22CMD ["nginx", "-g", "daemon off;"]
Note: See TracBrowser for help on using the repository browser.