api-client/Dockerfile

26 lines
377 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
2020-08-24 00:15:35 +00:00
# Create app directory
2019-09-25 00:52:25 +00:00
WORKDIR /app
COPY package*.json ./
2019-09-25 00:52:25 +00:00
RUN npm install
ADD . /app/
COPY . .
2020-08-24 00:15:35 +00:00
RUN npm run generate
2019-09-25 00:52:25 +00:00
2020-08-24 00:15:35 +00:00
ENV HOST 0.0.0.0
2019-09-25 00:52:25 +00:00
EXPOSE 3000
CMD ["npm", "run", "dev"]