2021-11-22 11:47:48 +01:00
|
|
|
FROM node:14-slim
|
2021-11-09 18:10:26 +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:00:53 +02:00
|
|
|
WORKDIR /app/dist
|
2020-06-15 18:06:54 +02:00
|
|
|
|
2021-02-25 14:27:46 +01:00
|
|
|
ENV PORT=4001
|
2020-07-08 22:53:15 +02:00
|
|
|
ENV COUCH_DB_URL=https://couchdb.budi.live:5984
|
2020-12-11 17:38:40 +01:00
|
|
|
ENV BUDIBASE_ENVIRONMENT=PRODUCTION
|
2022-06-01 15:10:00 +02:00
|
|
|
ENV SERVICE=app-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
|
2020-07-06 20:43:40 +02:00
|
|
|
|
2023-04-24 19:24:09 +02:00
|
|
|
|
2022-05-27 12:35:55 +02:00
|
|
|
# handle node-gyp
|
2022-05-27 16:36:34 +02:00
|
|
|
RUN apt-get update \
|
2023-05-19 16:26:34 +02:00
|
|
|
&& apt-get install -y --no-install-recommends g++ make python
|
2022-05-23 17:24:29 +02:00
|
|
|
RUN yarn global add pm2
|
2020-06-15 18:06:54 +02:00
|
|
|
|
2021-11-09 18:10:26 +01:00
|
|
|
# Install client for oracle datasource
|
|
|
|
RUN apt-get install unzip libaio1
|
2023-05-19 16:26:34 +02:00
|
|
|
COPY scripts/integrations/oracle/ scripts/integrations/oracle/
|
2021-11-09 18:10:26 +01:00
|
|
|
RUN /bin/bash -e scripts/integrations/oracle/instantclient/linux/x86-64/install.sh
|
|
|
|
|
2023-05-19 16:26:34 +02:00
|
|
|
COPY package.json .
|
|
|
|
RUN yarn \
|
|
|
|
&& yarn cache clean
|
|
|
|
RUN apt-get remove -y --purge --auto-remove g++ make python \
|
|
|
|
&& rm -rf /tmp/* /root/.node-gyp /usr/local/lib/node_modules/npm/node_modules/node-gyp
|
|
|
|
|
|
|
|
COPY dist/ .
|
|
|
|
COPY docker_run.sh .
|
2023-05-19 16:44:09 +02:00
|
|
|
COPY builder/ builder/
|
2023-05-19 16:59:09 +02:00
|
|
|
COPY client/ client/
|
2023-05-19 16:26:34 +02:00
|
|
|
|
2020-06-15 18:06:54 +02:00
|
|
|
EXPOSE 4001
|
|
|
|
|
2020-12-11 17:38:40 +01:00
|
|
|
# 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}
|
2023-05-19 16:44:09 +02:00
|
|
|
ENV TOP_LEVEL_PATH=/app
|
|
|
|
|
2022-05-23 17:24:29 +02:00
|
|
|
CMD ["./docker_run.sh"]
|