Skip to content

Commit

Permalink
Merge branch 'main' into chocomiembros
Browse files Browse the repository at this point in the history
  • Loading branch information
aloussase authored Sep 23, 2024
2 parents 59afa05 + 99285a3 commit 56d4d9c
Show file tree
Hide file tree
Showing 35 changed files with 7,593 additions and 101 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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ Thumbs.db
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*

#Webstorm
.idea/
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 56d4d9c

Please sign in to comment.