Rollback Docker
This commit is contained in:
parent
a731054401
commit
066e7905a3
2 changed files with 32 additions and 9 deletions
35
Dockerfile
35
Dockerfile
|
@ -7,16 +7,41 @@ WORKDIR /app
|
|||
COPY package.json .
|
||||
COPY pnpm-lock.yaml .
|
||||
|
||||
ENV NODE_ENV=production \
|
||||
PORT=3000
|
||||
|
||||
RUN npm install -g pnpm && \
|
||||
pnpm install sharp && \
|
||||
pnpm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm build
|
||||
RUN npm run build
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["pnpm", "start"]
|
||||
ENV PORT 3000
|
||||
|
||||
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"]
|
|
@ -19,8 +19,7 @@ export default function PodiumStep({
|
|||
<div className="flex flex-col items-center">
|
||||
<motion.div
|
||||
custom={index}
|
||||
initial="hidden"
|
||||
animate="visible"
|
||||
initial={['hidden', 'visible']}
|
||||
variants={{
|
||||
visible: () => ({
|
||||
opacity: 1,
|
||||
|
@ -37,8 +36,7 @@ export default function PodiumStep({
|
|||
</motion.div>
|
||||
<motion.div
|
||||
custom={index}
|
||||
initial="hidden"
|
||||
animate="visible"
|
||||
initial={['hidden', 'visible']}
|
||||
variants={{
|
||||
visible: () => ({
|
||||
height: 200 * ((podium.length - group.place) / podium.length),
|
||||
|
|
Loading…
Add table
Reference in a new issue