mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 06:06:54 +08:00
19 lines
298 B
Docker
19 lines
298 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 ./
|
|
RUN npm install
|
|
|
|
# add app
|
|
COPY . ./
|
|
|
|
# start app
|
|
CMD ["npm", "run", "start-docker"]
|