Last active
March 12, 2024 15:16
-
-
Save up1/d540c854c7ab49cf0cfa6226a95ebfec to your computer and use it in GitHub Desktop.
JSON Crack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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