Default command for docker container
solaris7x opened this issue · 0 comments
solaris7x commented
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