Skip to content

Commit

Permalink
chore: 🤖 change docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Portkey-David committed Jan 18, 2025
1 parent 75fb28f commit ffa0650
Show file tree
Hide file tree
Showing 3 changed files with 340 additions and 17 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ RUN ls ${web}

FROM base AS runner
WORKDIR ${web}
ENV NODE_ENV=production
# RUN addgroup --system --gid 1001 nodejs
# RUN adduser --system --uid 1001 vite
# RUN mkdir dist
# RUN chown vite:nodejs dist
COPY --from=builder ${web}/* .
COPY --from=builder ${web}/disk ./disk
COPY package.json ./


# USER vite
EXPOSE ${external_port}
ENV PORT=${external_port}
CMD ["npx", "vite","--port","3000"]
CMD ["npx", "serve", "dist", "--port", "3000"]
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"globals": "^15.14.0",
"postcss": "^8",
"prettier": "^2.6.2",
"serve": "^14.2.4",
"tailwindcss": "^3.3.0",
"typescript": "~5.6.2",
"typescript-eslint": "^8.18.2",
Expand Down
Loading

0 comments on commit ffa0650

Please sign in to comment.