2021-11-18 23:59:35 +13:00
|
|
|
FROM node:14-alpine
|
2020-06-16 04:06:54 +12:00
|
|
|
|
2021-07-30 07:32:18 +12: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"
|
|
|
|
|
2020-06-16 04:06:54 +12:00
|
|
|
WORKDIR /app
|
|
|
|
|
2021-02-26 02:27:46 +13:00
|
|
|
ENV PORT=4001
|
2020-07-09 08:53:15 +12:00
|
|
|
ENV COUCH_DB_URL=https://couchdb.budi.live:5984
|
2020-12-12 05:38:40 +13:00
|
|
|
ENV BUDIBASE_ENVIRONMENT=PRODUCTION
|
2020-07-07 06:43:40 +12:00
|
|
|
|
2020-06-16 04:06:54 +12:00
|
|
|
# copy files and install dependencies
|
|
|
|
COPY . ./
|
2020-12-12 05:38:40 +13:00
|
|
|
RUN yarn
|
2021-06-25 05:16:48 +12:00
|
|
|
RUN yarn build
|
2020-06-16 04:06:54 +12:00
|
|
|
|
|
|
|
EXPOSE 4001
|
|
|
|
|
2020-12-12 05:38:40 +13: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
|
2020-06-16 04:06:54 +12:00
|
|
|
CMD ["yarn", "run:docker"]
|