Commit bdd2a627 authored by 興怡's avatar 興怡
Browse files

prisma does not support arm

parent 7f87bae1
Pipeline #264561988 failed with stage
in 0 seconds
DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
ARG DEBIAN_FRONTEND=noninteractive
FROM node:15-buster
RUN apt-get update -y
# Puppeteer/Chrome headless deps
RUN apt-get install -yq \
gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 \
libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 \
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 \
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 \
lsb-release xdg-utils wget
# Cypress deps
RUN apt-get install -y \
libnotify-dev \
xvfb
RUN npm install -g blitz
RUN git clone https://github.com/for-good/isgood-webapp /app
COPY .env.local /app/
WORKDIR /app
RUN npm i next@latest react@latest react-dom@latest
RUN blitz prisma migrate dev --preview-feature
##RUN npm install
EXPOSE 3000
##CMD ["/usr/local/bin/blitz"]
version: "3.8"
services:
db:
image: "postgres:13-alpine"
env_file:
- ./.env.local
volumes:
- test-data:/var/lib/postgresql/data
web:
build:
context: .
dockerfile: blitz.Dockerfile
command: /usr/local/bin/blitz dev
ports:
- "3000:3000"
depends_on:
- db
volumes:
test-data:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment