Dockerfile actualizado con express js

This commit is contained in:
2024-10-17 17:10:54 +02:00
parent a860c95658
commit 2c4a0ec203
522 changed files with 65084 additions and 4 deletions

View File

@ -2,14 +2,12 @@ FROM alpine:3.14
RUN apk update && apk add --no-cache nodejs npm make g++ git
RUN git clone https://github.com/oatpp/oatpp.git && cd oatpp/ && mkdir build && cd build && cmake .. && make install
WORKDIR /app
COPY . .
RUN npm install
RUN npm install express --save
CMD ["npm", "run", "build"]
CMD ["node", "src/main.js"]
EXPOSE 8080