From baf2ad8b21eb7dbd92311734d9d9644b28a3b179 Mon Sep 17 00:00:00 2001 From: orosmatthew Date: Tue, 16 Jan 2024 20:19:18 -0500 Subject: [PATCH] [web] Update Dockerfile --- web/Dockerfile | 21 +++------------------ web/docker/entry.sh | 2 +- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index fa80e1f..67cb1bb 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -3,37 +3,22 @@ FROM ubuntu:22.04 WORKDIR /app RUN apt-get update +RUN apt-get install curl -y -RUN apt-get install curl -y - -RUN apt-get install -y ca-certificates curl gnupg -RUN mkdir -p /etc/apt/keyrings -RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg -ENV NODE_MAJOR=18 -RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list -RUN apt-get update -RUN apt-get install nodejs -y - -RUN apt-get install git -y +RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - +RUN apt-get install nodejs git -y RUN git config --global user.name "Admin" - RUN git config --global user.email noemail@example.com COPY package*.json ./ - RUN npm install - COPY . . ENV PORT=3000 - EXPOSE 3000 - EXPOSE 7006 RUN npm run build - RUN chmod +x ./docker/entry.sh - CMD ["./docker/entry.sh"] \ No newline at end of file diff --git a/web/docker/entry.sh b/web/docker/entry.sh index 2cae427..12e9a71 100644 --- a/web/docker/entry.sh +++ b/web/docker/entry.sh @@ -1,4 +1,4 @@ #!/bin/bash npx prisma db push --accept-data-loss npx prisma generate -BODY_SIZE_LIMIT=10240 INIT=true node build \ No newline at end of file +BODY_SIZE_LIMIT=Infinity INIT=true node build \ No newline at end of file