Skip to content

Instantly share code, notes, and snippets.

@up1
Last active March 12, 2024 15:16
Show Gist options
  • Save up1/d540c854c7ab49cf0cfa6226a95ebfec to your computer and use it in GitHub Desktop.
Save up1/d540c854c7ab49cf0cfa6226a95ebfec to your computer and use it in GitHub Desktop.
JSON Crack
# Builder
FROM node:18-alpine as builder
# Reference :: https://pnpm.io/docker
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /src
# Cache dependencies first
COPY package.json pnpm-lock.yaml ./
RUN pnpm install
# Copy other files and build
COPY . /src/
RUN pnpm build
# App
FROM nginxinc/nginx-unprivileged
COPY --chown=nginx:nginx --from=builder /src/out /app
COPY default.conf /etc/nginx/conf.d/default.conf
const initialStates: UserStates = {
user: null,
isAuthenticated: false,
premium: true,
premiumCancelled: false,
organization: false,
orgAdmin: false,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment