Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
choxx authored Oct 11, 2022
1 parent b9fdfdc commit 3bd0d5c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,18 @@ WORKDIR /app
#RUN cp .env .env
RUN mkdir -p broker
RUN mkdir -p redisinsight
RUN mkdir -p prisma
RUN chown -R 1001:1001 broker
RUN chown -R 1001:1001 redisinsight

COPY package.json ./
COPY yarn.lock ./
COPY apps/api/src/app/prisma/schema.prisma ./prisma

# Install app dependencies
RUN yarn install
#RUN npx prisma generate --schema=./app/prisma/schema.prisma
#RUN npx prisma migrate dev --schema=./app/prisma/schema.prisma
#RUN npx prisma db seed
#RUN sleep 30

COPY . .

# Generate build
RUN yarn run build

FROM node:16

COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
COPY --from=builder /app/yarn.lock ./
COPY --from=builder /app/dist ./dist

EXPOSE 3000
CMD [ "npx", "nx", "serve", "api" ]

0 comments on commit 3bd0d5c

Please sign in to comment.