mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-26 21:57:14 +08:00
20 lines
310 B
Docker
20 lines
310 B
Docker
# pull official base image
|
|
FROM node:16-alpine
|
|
|
|
# set working directory
|
|
WORKDIR /app
|
|
|
|
# add `/app/node_modules/.bin` to $PATH
|
|
ENV PATH /app/node_modules/.bin:$PATH
|
|
|
|
# install app dependencies
|
|
COPY package.json ./
|
|
COPY package-lock.json ./
|
|
RUN npm install
|
|
|
|
# add app
|
|
COPY . ./
|
|
|
|
# start app
|
|
CMD ["npm", "start"]
|