diff --git a/.env b/.env new file mode 100755 index 0000000..38e1b1e --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +DOMAIN=evilspins.com +PORT=7901 +PORT_EXPOSED=3000 diff --git a/Dockerfile b/Dockerfile index 10b2920..36e2c0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Builder -FROM node:20-bookworm AS builder +FROM node:20-alpine AS builder + WORKDIR /app COPY package*.json ./ RUN npm install --legacy-peer-deps @@ -8,7 +9,9 @@ COPY . . RUN npm run build # Runtime -FROM node:20-slim AS runner +FROM node:20-alpine AS runner +RUN apk add --no-cache python3 make g++ sqlite + WORKDIR /app COPY --from=builder /app/.output ./.output COPY package*.json ./ diff --git a/env.sh b/env.sh deleted file mode 100755 index 4a98fd8..0000000 --- a/env.sh +++ /dev/null @@ -1,3 +0,0 @@ -export DOMAIN="evilspins.com" -export PORT="7901" -export PORT_EXPOSED="3000"