Skip to content

Commit

Permalink
parece el final
Browse files Browse the repository at this point in the history
  • Loading branch information
Arejula11 committed Dec 18, 2023
1 parent 26a345a commit dded72b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "node-template",
"name": "ubuntu-dev",

"dockerFile": "Dockerfile",

Expand Down
Binary file removed SisInfo.zip
Binary file not shown.
27 changes: 4 additions & 23 deletions docker/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,47 +1,28 @@
# FROM ubuntu:latest


# RUN apt update -y
# RUN apt upgrade -y
# #RUN unminimize -y

# RUN apt install zsh git sudo man -y

# RUN apt install curl -y
# RUN apt install wget -y
# RUN curl -fsSL https://deb.nodesource.com/setup_19.x | sudo -E bash - && sudo apt-get install -y nodejs


# COPY . /home/api

# RUN cd /home/api

# #RUN npm install

# CMD ["npm", "start"]

# Utiliza la imagen de Node.js como base
FROM node:latest

# Establece el directorio de trabajo dentro del contenedor
WORKDIR /app

# Copia el archivo package.json y package-lock.json (o yarn.lock) al directorio de trabajo
COPY package*.json ./
COPY package*.json .


# Instala las dependencias de la aplicación
RUN npm install


# Copia los archivos de la aplicación al directorio de trabajo
COPY . .



# Instala npm serve de forma global (si no está instalado)
#RUN npm install -g serve

# Define el puerto en el que se ejecutará la aplicación
EXPOSE 3900

# Comando para iniciar la aplicación cuando se ejecute el contenedor
CMD ["npm", "start"]
CMD ["npm", "start"]
4 changes: 2 additions & 2 deletions docker/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js"
"start": "node index.js"
},
"author": "",
"license": "MIT",
Expand All @@ -21,6 +21,6 @@
"validator": "^13.11.0"
},
"devDependencies": {
"nodemon": "^3.0.1"
"node": "^20.10.0"
}
}

0 comments on commit dded72b

Please sign in to comment.