Files
GTF_VersionFinal/GTF_GIT/GTF/project/DockerfileGTF.frontend
T
2026-06-26 14:50:55 +02:00

25 lines
527 B
Plaintext

# DockerfileGTFRH.frontend
FROM node:18-alpine
# Create app directory
WORKDIR /GTF
# Copy package files first for caching
COPY package*.json ./
# Clean install to ensure Linux-compatible node_modules
RUN rm -rf node_modules package-lock.json && npm install
# Copy rest of the source code
COPY . .
RUN npm install -g vite
RUN npm install react-router-dom
RUN npm install --save-dev @vitejs/plugin-react
# Expose Vite default dev port
EXPOSE 3001
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "3001"]