Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Default command for docker container #45

Open
solaris7x opened this issue Apr 22, 2018 · 0 comments
Open

Default command for docker container #45

solaris7x opened this issue Apr 22, 2018 · 0 comments

Comments

@solaris7x
Copy link

I request dev to add a CMD command in dockerfile thus making it easier to deploy the docker image on public docker hosts , it's not a requirment but a simply to make things easier and less commands to type 😅 I have tested the below dockerfile and it seems to work without any problems

FROM node:6.9-alpine

# Set the applilcation directory
WORKDIR /app

COPY package.json /app

# Install app dependencies
RUN npm install

# Copy our code from the current folder to /app inside the container
COPY . /app

#CMD
CMD ["node","server/server.js"]

# Make port 3000 available for publish
EXPOSE 3000
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant