frontend docker refactor
This commit is contained in:
parent
63e33a45b4
commit
8c7fb8c6bf
8 changed files with 30 additions and 30 deletions
|
|
@ -6,7 +6,10 @@ COPY package*.json tsconfig*.json prisma.config.ts ./
|
|||
COPY prisma ./prisma
|
||||
COPY src ./src
|
||||
|
||||
RUN apt-get update -y && apt-get install -y openssl
|
||||
RUN apt-get update -y && \
|
||||
apt-get install -y openssl && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN npm install --omit=dev
|
||||
RUN npm run prisma:generate
|
||||
|
||||
|
|
@ -18,9 +21,6 @@ RUN npm run build
|
|||
FROM base
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/prisma ./prisma
|
||||
# COPY --from=builder /app/node_modules ./node_modules
|
||||
COPY prisma.config.ts /app/
|
||||
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ WORKDIR /app
|
|||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN apt-get update -y && apt-get install -y openssl
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 3000
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
"cors": "^2.8.5",
|
||||
"dotenv": "^17.0.1",
|
||||
"express": "^5.1.0",
|
||||
"knex": "^3.1.0",
|
||||
"pg": "^8.17.2",
|
||||
"prisma": "7.2.0"
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue