-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b953186
commit 1cc1b6c
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Usar una imagen base oficial de Node.js | ||
FROM node:18 | ||
|
||
# Crear un directorio de trabajo | ||
WORKDIR /app | ||
|
||
# Copiar package.json y package-lock.json | ||
COPY package*.json ./ | ||
|
||
# Instalar las dependencias del proyecto | ||
RUN npm install | ||
|
||
# Copiar el resto del código de la aplicación | ||
COPY . . | ||
|
||
# Exponer el puerto en el que tu aplicación escuchará | ||
EXPOSE 3000 | ||
|
||
# Comando para ejecutar tu aplicación | ||
CMD ["npm", "start"] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters