api-client/Dockerfile

22 lines
325 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 \
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"]