hoppscotch/Dockerfile

30 lines
443 B
Docker
Raw Normal View History

2021-09-17 07:42:49 +00:00
FROM node:lts-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 --no-cache --virtual .gyp \
python3 \
make \
g++
2020-08-24 00:15:35 +00:00
# Create app directory
2019-09-25 00:52:25 +00:00
WORKDIR /app
ADD . /app/
COPY . .
2021-09-17 07:42:49 +00:00
RUN npm install -g pnpm
RUN mv .env.example .env
2022-10-06 20:12:39 +00:00
2021-11-02 15:52:37 +00:00
RUN pnpm i --unsafe-perm=true
2021-09-17 07:42:49 +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
2022-10-04 08:14:29 +00:00
RUN pnpm run generate
CMD ["pnpm", "run", "start"]