2021-10-11 03:39:01 +00:00
|
|
|
FROM alpine
|
2017-12-09 21:51:18 +00:00
|
|
|
|
|
|
|
ENV HOME=/app \
|
2021-10-11 03:39:01 +00:00
|
|
|
NODE_ENV=production
|
2017-12-09 21:51:18 +00:00
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
2021-10-11 03:39:01 +00:00
|
|
|
COPY package.json $HOME/
|
2017-12-09 21:51:18 +00:00
|
|
|
|
2021-10-11 03:39:01 +00:00
|
|
|
RUN apk update && apk upgrade && apk add nodejs npm && npm install --production
|
2017-12-09 21:51:18 +00:00
|
|
|
|
2021-10-11 03:39:01 +00:00
|
|
|
COPY api $HOME/api
|
2017-12-09 21:51:18 +00:00
|
|
|
|
|
|
|
CMD ["npm", "start"]
|