Skip to content

Commit

Permalink
chore: deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sch-28 committed Apr 8, 2023
1 parent f507dc7 commit 60cdf06
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
**/.classpath
**/.dockerignore
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
README.md
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:16-slim
RUN apt-get update && apt-get install -y openssl
WORKDIR /usr/src/app
COPY . .
RUN npm install && npm run build
EXPOSE 3000
USER node
CMD ["node", "build"]
20 changes: 20 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3.4'

services:
ikusa:
image: ikusa
restart: always
environment:
- HOST=0.0.0.0
- PORT=3000
- NODE_ENV=production
env_file:
- .env
volumes:
- ./prisma:/usr/src/app/prisma
build:
context: .
dockerfile: ./Dockerfile
ports:
- 3000:3000

0 comments on commit 60cdf06

Please sign in to comment.