2021-11-18 11:59:35 +01:00
|
|
|
FROM node:14-alpine
|
2020-12-16 20:50:02 +01:00
|
|
|
|
2021-07-29 21:32:18 +02:00
|
|
|
LABEL com.centurylinklabs.watchtower.lifecycle.pre-check="scripts/watchtower-hooks/pre-check.sh"
|
|
|
|
LABEL com.centurylinklabs.watchtower.lifecycle.pre-update="scripts/watchtower-hooks/pre-update.sh"
|
|
|
|
LABEL com.centurylinklabs.watchtower.lifecycle.post-update="scripts/watchtower-hooks/post-update.sh"
|
|
|
|
LABEL com.centurylinklabs.watchtower.lifecycle.post-check="scripts/watchtower-hooks/post-check.sh"
|
|
|
|
|
2023-05-19 18:30:48 +02:00
|
|
|
WORKDIR /app
|
2020-12-16 20:50:02 +01:00
|
|
|
|
2022-05-27 12:35:55 +02:00
|
|
|
# handle node-gyp
|
2023-05-19 14:45:05 +02:00
|
|
|
RUN apk add --no-cache --virtual .gyp python3 make g++
|
2022-05-23 17:24:29 +02:00
|
|
|
RUN yarn global add pm2
|
2020-12-16 20:50:02 +01:00
|
|
|
|
2023-05-19 14:45:05 +02:00
|
|
|
|
|
|
|
COPY dist/package.json .
|
|
|
|
RUN yarn
|
|
|
|
RUN apk del .gyp \
|
|
|
|
&& yarn cache clean
|
|
|
|
|
2023-05-19 18:30:48 +02:00
|
|
|
COPY dist/ dist/
|
2023-05-19 14:45:05 +02:00
|
|
|
|
2020-12-16 20:50:02 +01:00
|
|
|
EXPOSE 4001
|
|
|
|
|
|
|
|
# have to add node environment production after install
|
|
|
|
# due to this causing yarn to stop installing dev dependencies
|
|
|
|
# which are actually needed to get this environment up and running
|
|
|
|
ENV NODE_ENV=production
|
2022-05-23 17:24:29 +02:00
|
|
|
ENV CLUSTER_MODE=${CLUSTER_MODE}
|
2022-06-01 15:10:00 +02:00
|
|
|
ENV SERVICE=worker-service
|
2022-08-08 15:03:04 +02:00
|
|
|
ENV POSTHOG_TOKEN=phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU
|
2023-02-01 15:12:43 +01:00
|
|
|
ENV TENANT_FEATURE_FLAGS=*:LICENSING,*:USER_GROUPS,*:ONBOARDING_TOUR
|
2022-09-23 14:40:00 +02:00
|
|
|
ENV ACCOUNT_PORTAL_URL=https://account.budibase.app
|
2022-06-01 15:10:00 +02:00
|
|
|
|
2022-05-23 17:24:29 +02:00
|
|
|
CMD ["./docker_run.sh"]
|