api-client/Dockerfile

26 lines
378 B
Docker
Raw Normal View History

FROM node:12.10.0-alpine
2019-09-25 00:52:25 +00:00
2021-04-23 11:38:17 +00:00
LABEL maintainer="Hoppscotch (support@hoppscotch.io)"
# 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
ENV HOST 0.0.0.0
2019-09-25 00:52:25 +00:00
EXPOSE 3000
2021-05-27 14:08:21 +00:00
RUN mv .env.example .env
CMD ["npm", "run", "dev"]