Base Principal del Proyecto
This commit is contained in:
18
frontend/Dockerfile
Normal file
18
frontend/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copiar package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Instalar dependencias
|
||||
RUN npm install
|
||||
|
||||
# Copiar código
|
||||
COPY . .
|
||||
|
||||
# Exponer puerto
|
||||
EXPOSE 5173
|
||||
|
||||
# Comando por defecto
|
||||
CMD ["npm", "run", "dev", "--", "--host"]
|
||||
Reference in New Issue
Block a user