16 lines
194 B
Docker
16 lines
194 B
Docker
FROM node:alpine
|
|
|
|
# Create app directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Install app dependencies
|
|
COPY package.json .
|
|
|
|
RUN yarn install
|
|
|
|
# Bundle app source
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
CMD [ "npm", "start" ]
|