bot_sm_1.0 / Dockerfile
JustJoin's picture
Update Dockerfile
a37e022 verified
Raw
History Blame Contribute Delete
746 Bytes
FROM node:20-slim
# 1. Jalankan instalasi tools dasar
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# 2. MANIPULASI LEVEL SYSTEM (Bukan --global)
# Ini memaksa seluruh sistem Linux kontainer memakai HTTPS, tak peduli siapa yang manggil
RUN git config --system url."https://github.com/".insteadOf "ssh://git@github.com/" && \
git config --system url."https://github.com/".insteadOf "git@github.com:"
WORKDIR /app
# 3. TRIK CACHE BREAKER (Ubah angka di bawah jika ingin memaksa hapus cache di masa depan)
ENV CACHE_BYPASS_TIMESTAMP=202606212300
COPY package.json ./
RUN npm install --prefer-online --no-audit
COPY . .
EXPOSE 7860
CMD ["npm", "start"]