budibase/packages/server/Dockerfile

32 lines
1.0 KiB
Docker
Raw Normal View History

FROM node:14-slim
RUN apt-get update
2020-06-15 18:06:54 +02: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"
2020-06-15 18:06:54 +02:00
WORKDIR /app
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
ENV BUDIBASE_ENVIRONMENT=PRODUCTION
2020-07-06 20:43:40 +02:00
2020-06-15 18:06:54 +02:00
# copy files and install dependencies
COPY . ./
RUN yarn
RUN yarn build
2020-06-15 18:06:54 +02:00
# Install client for oracle datasource
RUN apt-get install unzip libaio1
RUN /bin/bash -e scripts/integrations/oracle/instantclient/linux/x86-64/install.sh
2020-06-15 18:06:54 +02: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
2020-06-15 18:06:54 +02:00
CMD ["yarn", "run:docker"]