ajout du Dockerfile

This commit is contained in:
Guamss 2025-12-18 14:53:44 +01:00
parent 173b4636bc
commit 1ab5e4e652

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM node:lts-alpine
ARG VITE_MBL_API_URL
ENV VITE_MBL_API_URL=$VITE_MBL_API_URL
RUN npm install -g http-server
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 8080
CMD [ "http-server", "dist" ]