2020-02-10 12:39:37 +00:00
|
|
|
FROM node:12-alpine
|
2018-06-27 14:59:47 +00:00
|
|
|
|
2020-02-10 20:49:23 +00:00
|
|
|
RUN apk --no-cache add git
|
|
|
|
|
2018-06-28 06:47:06 +00:00
|
|
|
RUN mkdir -p /srv
|
|
|
|
|
2020-03-09 15:03:06 +00:00
|
|
|
ADD . /srv
|
2018-06-28 06:47:06 +00:00
|
|
|
|
|
|
|
WORKDIR /srv
|
|
|
|
|
2020-02-10 20:44:04 +00:00
|
|
|
RUN yarn install
|
2018-06-28 06:47:06 +00:00
|
|
|
|
2020-09-29 11:12:36 +00:00
|
|
|
ENV NODE_ENV=production
|
|
|
|
|
2020-03-09 15:03:06 +00:00
|
|
|
CMD yarn run start
|
2020-02-10 20:49:23 +00:00
|
|
|
EXPOSE 3000
|