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

Default command for docker container  #45

@solaris7x

Description

@solaris7x

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions