api-client/Dockerfile

22 lines
323 B
Docker
Raw Normal View History

FROM node:12.10.0-alpine
2019-09-25 00:52:25 +00:00
LABEL maintainer="Liyas Thomas (liyascthomas@gmail.com)"
# 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-09-25 00:52:25 +00:00
WORKDIR /app
COPY package*.json ./
2019-09-25 00:52:25 +00:00
RUN npm install
COPY . .
2019-09-25 00:52:25 +00:00
RUN npm run build
EXPOSE 3000
CMD ["npm", "run", "start"]