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)"
|
2019-09-26 11:40:31 +00:00
|
|
|
|
2019-11-19 18:52:12 +00:00
|
|
|
# Add git as the prebuild target requires it to parse version information
|
2021-12-03 07:44:34 +00:00
|
|
|
RUN apk add --no-cache --virtual .gyp \
|
|
|
|
python3 \
|
|
|
|
make \
|
|
|
|
g++
|
2019-11-19 18:52:12 +00:00
|
|
|
|
2020-08-24 00:15:35 +00:00
|
|
|
# Create app directory
|
2019-09-25 00:52:25 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-12-01 15:51:13 +00:00
|
|
|
ADD . /app/
|
|
|
|
|
2019-11-26 03:03:55 +00:00
|
|
|
COPY . .
|
|
|
|
|
2021-09-17 07:42:49 +00:00
|
|
|
RUN npm install -g pnpm
|
|
|
|
|
2022-12-02 16:58:02 +00:00
|
|
|
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"]
|