Files
fastapi-vue-odoo/frontend/Dockerfile
bartool 9890563dc2
Some checks failed
Deploy Application / deploy (push) Failing after 11s
Test runner / check-runner (push) Successful in 3s
fix: update Dockerfile to correct paths for package.json and source files
2026-01-06 21:51:10 +01:00

18 lines
366 B
Docker

# Etap 1: Build Vue
FROM node:20 AS build
WORKDIR /app
COPY ./package*.json ./
RUN npm install
COPY . ./
RUN npm run build
# Etap 2: Nginx serwujący Vue + proxy do backendu
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
# Konfiguracja Nginx z proxy
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]