Skip to content

Commit

Permalink
chore: docker image improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Oct 13, 2024
1 parent 853b60e commit 856dc23
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/client/layouts/newLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ export default function NewLayout({ children }: any) {
{user.isAdmin && (
<Link href="https://github.com/Peppermint-Lab/peppermint/releases">
<span className="inline-flex items-center rounded-md bg-green-700/10 px-3 py-2 text-xs font-medium text-green-600 ring-1 ring-inset ring-green-500/20">
Version 0.5.0
Version 0.5.1
</span>
</Link>
)}
Expand Down
1 change: 1 addition & 0 deletions apps/client/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const nextTranslate = require("next-translate");
module.exports = removeImports({
reactStrictMode: false,
swcMinify: true,
output: "standalone",
...nextTranslate(),

async rewrites() {
Expand Down
4 changes: 3 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ RUN cd apps/client && yarn build
FROM node:lts AS runner

COPY --from=builder /app/apps/api/ ./apps/api/
COPY --from=builder /app/apps/client ./apps/client
COPY --from=builder /app/apps/client/.next/standalone ./apps/client
COPY --from=builder /app/apps/client/.next/static ./apps/client/.next/static
COPY --from=builder /app/apps/client/public ./apps/client/public
COPY --from=builder /app/ecosystem.config.js ./ecosystem.config.js

# Expose the ports for both apps
Expand Down
3 changes: 2 additions & 1 deletion ecosystem.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
apps: [
{
name: "client",
script: "npm run start",
script: "node",
args: "server.js",
cwd: "apps/client",
instances: "1",
autorestart: true,
Expand Down

0 comments on commit 856dc23

Please sign in to comment.