mirror of
https://github.com/zhigang1992/hasura-backend-plus.git
synced 2026-01-12 17:22:59 +08:00
* feat: autoload migrations and simplify start script no need to get the migrations from the migration files from the repo and to mount a specific volume to the Hasura GE service. By default, when HBP starts, it checks the migrations and installs it if required. This can be disabled by setting AUTO_MIGRATE to false. This system could be extended to set AUTO_MIGRATE=v1 so it runs another set of migrations that would transform schema and data from HBP v1 to HBP v2 * fix: include mock migrations used for testing * fix: run migrations in a separate node script * refactor: better general repo structure, and migration that works * ci: change test mock migration folder in GH actions
28 lines
982 B
Docker
28 lines
982 B
Docker
FROM node:10-slim
|
|
|
|
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
|
|
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer installs, work.
|
|
RUN apt-get update \
|
|
&& apt-get install -y wget gnupg git \
|
|
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
|
|
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
|
|
&& apt-get update \
|
|
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
|
|
--no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
|
|
|
ARG NODE_ENV=development
|
|
ENV NODE_ENV $NODE_ENV
|
|
ENV PORT 3000
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json yarn.lock ./
|
|
RUN yarn install
|
|
|
|
COPY . .
|
|
|
|
CMD ["yarn", "run", "test"]
|