Skip to content

Commit

Permalink
fix: memindahkan workdir
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jul 3, 2024
1 parent d4fedc0 commit 888c5f0
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions apps/processor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ RUN <<EOF
EOF

# Debugging purpose
RUN <<EOF
apt-get install tree
tree /vote-processor
EOF
# RUN <<EOF
# apt-get install tree
# tree /vote-processor
# EOF

FROM base AS runner
# Don't run production as root
Expand All @@ -62,26 +62,6 @@ USER processor

COPY --from=builder --chown=processor:nodejs /vote-processor /vote-processor

# WORKDIR /app

# EXPOSE 3000
# ENV PORT=3000
# ENV AUTH_TRUST_HOST=true

# ENV NODE_ENV=production

# COPY --from=builder --chown=nextjs:nodejs /app/apps/web/next.config.js .
# COPY --from=builder --chown=nextjs:nodejs /app/apps/web/package.json .

# # Automatically leverage output traces to reduce image size
# # https://nextjs.org/docs/advanced-features/output-file-tracing
# COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/standalone ./
# COPY --from=builder --chown=nextjs:nodejs /app/apps/web/.next/static ./apps/web/.next/static
# COPY --from=builder --chown=nextjs:nodejs /app/apps/web/public ./apps/web/public

# COPY --from=pruned-repo /app/start-web.sh .

# RUN mkdir -p /app/apps/web/public/uploads/
# RUN chown -R ${USER}:${USER} /app/apps/web/public/uploads/
WORKDIR /vote-processor

CMD ["node", "node_modules/@sora-vp/processor/dist/index.js"]

0 comments on commit 888c5f0

Please sign in to comment.