mirror of
https://github.com/len0rd/personal-website.git
synced 2025-03-01 12:02:14 -05:00
19 lines
301 B
Docker
19 lines
301 B
Docker
|
FROM node:14
|
||
|
|
||
|
# Create app directory
|
||
|
WORKDIR /usr/src/app
|
||
|
|
||
|
# Install app dependencies
|
||
|
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||
|
# where available (npm@5+)
|
||
|
COPY package*.json ./
|
||
|
|
||
|
RUN npm install
|
||
|
|
||
|
# Bundle app source
|
||
|
COPY . .
|
||
|
|
||
|
EXPOSE 8090
|
||
|
|
||
|
CMD [ "npm", "start" ]
|