Version sin Vite.
This commit is contained in:
19
backend/Dockerfile
Normal file
19
backend/Dockerfile
Normal file
@@ -0,0 +1,19 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
# Directorio de trabajo
|
||||
WORKDIR /app
|
||||
|
||||
# Copiamos dependencias
|
||||
COPY package*.json ./
|
||||
|
||||
# Instalamos
|
||||
RUN npm install
|
||||
|
||||
# Copiamos el resto del código
|
||||
COPY . .
|
||||
|
||||
# Exponemos el puerto 9002 (que configuramos en index.js)
|
||||
EXPOSE 9002
|
||||
|
||||
# Arrancamos
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user