Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
aloussase authored Sep 22, 2024
2 parents ea1a227 + a438c89 commit 799d556
Show file tree
Hide file tree
Showing 29 changed files with 7,408 additions and 95 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
build
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM node:22 AS build

WORKDIR /app

COPY package.json ./
COPY package-lock.json ./

RUN npm install

COPY . ./

RUN NODE_OPTIONS="--max_old_space_size=1512" npm run build

FROM node:22

COPY --from=build /app/build ./build
COPY package.json ./
COPY package-lock.json ./

RUN npm ci --omit dev

CMD ["node", "build"]
2 changes: 2 additions & 0 deletions deploy.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
docker build -t aloussase/kokoa-site .
docker push aloussase/kokoa-site
5 changes: 5 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -e
docker build -t aloussase/kokoa-site .
docker push aloussase/kokoa-site
Loading

0 comments on commit 799d556

Please sign in to comment.