This commit is contained in:
parent
cf1c041db5
commit
5238404e28
@ -2,16 +2,12 @@
|
|||||||
FROM node:16-alpine AS deps
|
FROM node:16-alpine AS deps
|
||||||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
|
# 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
|
RUN apk add --no-cache libc6-compat
|
||||||
|
RUN yarn global add pnpm
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install dependencies based on the preferred package manager
|
# Install dependencies based on the preferred package manager
|
||||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
|
COPY package.json pnpm-lock.yaml* ./
|
||||||
RUN \
|
RUN pnpm i
|
||||||
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
|
|
||||||
elif [ -f package-lock.json ]; then npm ci; \
|
|
||||||
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i; \
|
|
||||||
else echo "Lockfile not found." && exit 1; \
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
|
@ -2,3 +2,4 @@
|
|||||||
.git/
|
.git/
|
||||||
.cuddle/
|
.cuddle/
|
||||||
node_modules/
|
node_modules/
|
||||||
|
scripts/
|
||||||
|
@ -4,6 +4,7 @@ query GetUpcoming {
|
|||||||
date {
|
date {
|
||||||
day
|
day
|
||||||
hour
|
hour
|
||||||
|
month
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,12 @@ export type GetUpcomingQuery = {
|
|||||||
getUpcoming: Array<{
|
getUpcoming: Array<{
|
||||||
__typename?: "Event";
|
__typename?: "Event";
|
||||||
name: string;
|
name: string;
|
||||||
date: { __typename?: "EventDate"; day: number; hour: number };
|
date: {
|
||||||
|
__typename?: "EventDate";
|
||||||
|
day: number;
|
||||||
|
hour: number;
|
||||||
|
month: number;
|
||||||
|
};
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -62,6 +67,7 @@ export const GetUpcomingDocument = gql`
|
|||||||
date {
|
date {
|
||||||
day
|
day
|
||||||
hour
|
hour
|
||||||
|
month
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user