16 lines
227 B
Docker
16 lines
227 B
Docker
|
FROM node:14-alpine AS development
|
||
|
# Add a work directory
|
||
|
WORKDIR /app
|
||
|
|
||
|
# Cache and Install dependencies
|
||
|
COPY package.json .
|
||
|
RUN yarn install
|
||
|
|
||
|
COPY index.js .
|
||
|
|
||
|
# Expose port
|
||
|
EXPOSE 1234
|
||
|
|
||
|
# Start the app
|
||
|
CMD [ "yarn", "start"]
|