Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #176 from purplship/purplship-2021.12
Browse files Browse the repository at this point in the history
[release-candidate] Purplship 2021.12
  • Loading branch information
danh91 authored Jan 30, 2022
2 parents 3df1930 + fa80df8 commit 1852999
Show file tree
Hide file tree
Showing 239 changed files with 11,345 additions and 6,423 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*

!/public/
!/purplship/
!/src/
!/package.json
!/package-lock.json
Expand Down
10 changes: 10 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# purplship dashboard environment variables

# purplship server address
# PURPLSHIP_HOSTNAME=http://0.0.0.0:5002
NEXT_PUBLIC_PURPLSHIP_API_URL=http://0.0.0.0:5002


# next-auth config
NEXTAUTH_URL=http://0.0.0.0:3000
JWT_SECRET=n*s-ex6@ex_r1i%bk=3jd)p+lsick5bi*90!mbk7rc3iy_op1r
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ yarn-error.log*

# vercel
.vercel
.env
12 changes: 5 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
# Install dependencies only when needed
FROM node:alpine AS deps
FROM node:16.13.2-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json package-lock.json ./
RUN export NODE_OPTIONS=--openssl-legacy-provider && \
npm ci
RUN npm ci

# Rebuild the source code only when needed
FROM node:alpine AS builder
FROM node:16.13.2-alpine AS builder
WORKDIR /app
COPY . .
COPY --from=deps /app/node_modules ./node_modules
RUN export NODE_OPTIONS=--openssl-legacy-provider && \
npm run build && \
RUN npm run build && \
npm install --production --ignore-scripts --prefer-offline

# Production image, copy all the files and run next
FROM node:alpine AS runner
FROM node:16.13.2-alpine AS runner
WORKDIR /app

ENV NEXT_TELEMETRY_DISABLED 1
Expand Down
Loading

0 comments on commit 1852999

Please sign in to comment.