Skip to content

Commit 8576b85

Browse files
committed
spin up backend
1 parent 40f5ebe commit 8576b85

File tree

11 files changed

+993
-3
lines changed

11 files changed

+993
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
# production
1616
/build
1717
/frontend/.next
18+
/backend/dist
1819

1920
# misc
2021
.DS_Store

backend/.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
npm-debug.log
3+
build
4+
.git
5+
*.md
6+
.gitignore

backend/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:22-alpine
2+
3+
ENV NODE_ENV production
4+
5+
WORKDIR /app
6+
COPY . .
7+
8+
RUN npm ci
9+
RUN npm run build
10+
11+
EXPOSE 9000
12+
13+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)