Skip to content

Commit

Permalink
Add: Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Aug 29, 2024
1 parent 3068bb1 commit 9215a5d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
15 changes: 0 additions & 15 deletions config.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,3 @@ postgres:
database: "chcy"
host: "postgres"
port: 5432
discord:
guild_id: "123456789012345678"
client_id: "123456789012345678"
client_secret: "cl1ent53cr3t"
bot_token: "D1dY0uR34llyTh1nk.1W0uldPutTh3B0tT0k3nH3r3.10l"
warning_channel_id: "123456789012345678"
sentry:
dsn:
backend: "..."
frontend: "..."
sub_audio: "..."
sub_image: "..."
sub_chart: "..."
environment: "production"
traces_sample_rate: 0.1
16 changes: 16 additions & 0 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:22-slim

WORKDIR /app

RUN apt-get update && apt-get install -y curl

COPY frontend/package.json frontend/pnpm-lock.yaml ./

ENV NODE_ENV=production
ENV CI=true
RUN npm install -g pnpm && pnpm install --frozen-lockfile

COPY frontend/. .

EXPOSE 3100
CMD ["pnpm", "start"]
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"check": "biome check app components lib styles",
"format": "biome check --write app components lib styles",
"typecheck": "tsc --noEmit",
"build": "remix vite:build"
"build": "remix vite:build",
"start": "cross-env PORT=3100 NODE_ENV=production remix-serve build/server/index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@acab/reset.css": "^0.10.0",
"@fluentui/react-icons": "2.0.253",
Expand Down

0 comments on commit 9215a5d

Please sign in to comment.