clone basic database structure from zhquiz
This commit is contained in:
1 parent
6be2365fc6
commit
11d44ccfd3
18 files changed
+1594
No files matched your search
+38
@@ -0,0 +1,38 @@
|
||||
# Based on debian-slim
|
||||
FROM postgres:12
|
||||
|
||||
RUN mkdir -p /app
|
||||
RUN apt-get update
|
||||
|
||||
# pgroonga extension
|
||||
# Does not officially support alpine
|
||||
RUN apt-get install -y curl
|
||||
RUN curl -O https://packages.groonga.org/debian/groonga-apt-source-latest-buster.deb
|
||||
RUN apt-get install -y ./groonga-apt-source-latest-buster.deb
|
||||
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
|
||||
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y postgresql-12-pgdg-pgroonga
|
||||
RUN apt-get install -y groonga-tokenizer-mecab
|
||||
RUN apt-get install -y groonga-token-filter-stem
|
||||
|
||||
# postgres-json-schema extension
|
||||
WORKDIR /app
|
||||
RUN apt-get install -y git make
|
||||
RUN git clone --depth 1 https://github.com/gavinwahl/postgres-json-schema.git
|
||||
RUN cd postgres-json-schema && make install
|
||||
|
||||
# nodejs14
|
||||
# Install nodejs 14
|
||||
WORKDIR /app
|
||||
RUN apt-get install -y dirmngr apt-transport-https lsb-release ca-certificates jq
|
||||
RUN curl -sSL https://deb.nodesource.com/setup_14.x | bash -
|
||||
RUN apt-get install -y nodejs gcc g++ make
|
||||
|
||||
RUN npm i -g yarn
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn --frozen-lockfile
|
||||
# COPY . .
|
||||
# RUN yarn build
|
||||
# RUN jq 'del(.devDependencies)' package.json > tmp.json && mv tmp.json package.json
|
||||
# RUN yarn --frozen-lockfile
|
||||
Reference in new issue
Block a user