Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinderVosDeWael committed Feb 20, 2024
1 parent 3a453f5 commit d346b71
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.vscode
.svelte-kit
build
node_modules
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM node:18-alpine as builder

ARG OPENAI_API_KEY

WORKDIR /app
COPY . .

RUN npm ci && npm run build

FROM node:18-alpine

EXPOSE 3000
WORKDIR /app
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/build /app/build
COPY --from=builder /app/package.json /app/package.json

CMD ["node", "build/index.js"]
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "my-skeleton-app",
"name": "agate",
"version": "0.0.1",
"private": true,
"scripts": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"vite": "^5.0.3",
"vite-plugin-tailwind-purgecss": "0.2.0",
"vite-plugin-tailwind-purgecss": "^0.2.0",
"vitest": "^1.2.0"
},
"type": "module",
Expand Down

0 comments on commit d346b71

Please sign in to comment.