Rollback Docker

This commit is contained in:
Théo 2023-05-16 15:42:43 +02:00
parent a731054401
commit 066e7905a3
2 changed files with 32 additions and 9 deletions

View file

@ -7,16 +7,41 @@ WORKDIR /app
COPY package.json . COPY package.json .
COPY pnpm-lock.yaml . COPY pnpm-lock.yaml .
ENV NODE_ENV=production \
PORT=3000
RUN npm install -g pnpm && \ RUN npm install -g pnpm && \
pnpm install sharp && \
pnpm install pnpm install
COPY . . COPY . .
RUN npm build RUN npm run build
ENV NODE_ENV=production
EXPOSE 3000 EXPOSE 3000
ENV PORT 3000
CMD ["pnpm", "start"] CMD ["pnpm", "start"]
# FROM node:16-alpine AS builder
# RUN apk add --no-cache libc6-compat
# WORKDIR /app
# COPY package.json .
# COPY pnpm-lock.yaml .
# ENV NODE_ENV=production \
# PORT=3000
# RUN npm install -g pnpm && \
# pnpm install
# COPY . .
# RUN npm build
# EXPOSE 3000
# CMD ["pnpm", "start"]

View file

@ -19,8 +19,7 @@ export default function PodiumStep({
<div className="flex flex-col items-center"> <div className="flex flex-col items-center">
<motion.div <motion.div
custom={index} custom={index}
initial="hidden" initial={['hidden', 'visible']}
animate="visible"
variants={{ variants={{
visible: () => ({ visible: () => ({
opacity: 1, opacity: 1,
@ -37,8 +36,7 @@ export default function PodiumStep({
</motion.div> </motion.div>
<motion.div <motion.div
custom={index} custom={index}
initial="hidden" initial={['hidden', 'visible']}
animate="visible"
variants={{ variants={{
visible: () => ({ visible: () => ({
height: 200 * ((podium.length - group.place) / podium.length), height: 200 * ((podium.length - group.place) / podium.length),