Merge pull request #170 from linkwarden/dev

Dev
This commit is contained in:
Daniel 2023-09-25 01:14:33 +03:30 committed by GitHub
commit 1dbae67443
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 14 deletions

View File

@ -1,27 +1,22 @@
# playwright doesnt support debian image
FROM ubuntu:focal
FROM node:20-bullseye-slim
RUN apt-get update && apt-get install wget xz-utils -y
ARG DEBIAN_FRONTEND=noninteractive
RUN mkdir /data
WORKDIR /data
RUN wget https://nodejs.org/dist/v20.5.0/node-v20.5.0-linux-x64.tar.xz -O nodejs.tar.xz \
&& mkdir /opt/nodejs \
&& tar -xf nodejs.tar.xz --strip-components 1 -C /opt/nodejs \
&& rm nodejs.tar.xz
ENV PATH="$PATH:/opt/nodejs/bin"
RUN npm install -g yarn
COPY ./package.json ./yarn.lock ./playwright.config.ts ./
RUN yarn
RUN npx playwright install-deps
RUN yarn && \
npx playwright install-deps && \
apt-get clean && \
yarn cache clean
COPY . .
RUN yarn prisma generate
RUN yarn build
RUN yarn prisma generate && \
yarn build
CMD yarn prisma migrate deploy && yarn start

View File

@ -66,7 +66,7 @@ export default function UserModal({
: "px-2 py-1 hover:bg-slate-200 hover:dark:bg-neutral-700 rounded-md duration-100 outline-none"
}
>
Billing Portal
Billing
</Tab>
) : undefined}
</Tab.List>