2019-11-19 18:52:12 +00:00
|
|
|
FROM node:12.10.0-alpine
|
2019-09-25 00:52:25 +00:00
|
|
|
|
2019-09-26 11:40:31 +00:00
|
|
|
LABEL maintainer="Liyas Thomas (liyascthomas@gmail.com)"
|
|
|
|
|
|
2019-11-19 18:52:12 +00:00
|
|
|
# Add git as the prebuild target requires it to parse version information
|
|
|
|
|
RUN apk add --update --no-cache \
|
2019-11-28 15:11:52 +00:00
|
|
|
git
|
2019-11-19 18:52:12 +00:00
|
|
|
|
2019-09-25 00:52:25 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
2019-11-26 03:03:55 +00:00
|
|
|
COPY package*.json ./
|
2019-09-25 00:52:25 +00:00
|
|
|
|
|
|
|
|
RUN npm install
|
2019-11-26 03:03:55 +00:00
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
2019-09-25 00:52:25 +00:00
|
|
|
RUN npm run build
|
|
|
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
|
|
CMD ["npm", "run", "start"]
|