Created
September 16, 2017 14:42
-
-
Save gorkamu/1156adb981ea27dbd8c3ea328170c44e to your computer and use it in GitHub Desktop.
Fichero Dockerfile para el ejemplo de uso de Docker con Nodejs
This file contains hidden or 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
FROM node:argon | |
# Creando el directorio de la aplicación | |
RUN mkdir -p /usr/src/app | |
WORKDIR /usr/src/app | |
# Instalando todas sus dependencias | |
COPY package.json /usr/src/app/ | |
RUN npm install | |
COPY . /usr/src/app | |
EXPOSE 8080 | |
CMD [ "npm", "start" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment