1
Fork 0
This commit is contained in:
Korbs 2024-07-07 20:04:25 -04:00
parent 578683313d
commit 6558700cd1
7 changed files with 42 additions and 41 deletions

View file

@ -1,32 +1,13 @@
# Base
FROM debian:12-slim
FROM ark.sudovanilla.org/korbs/nodejs:alpine AS runtime
WORKDIR /app
# Set Work Directory
WORKDIR /minpluto
COPY . /minpluto
COPY . .
# Expose Ports
EXPOSE 1930
# Install Requirements
RUN apt-get update && apt-get -y install \
libcurl4-openssl-dev make g++ ca-certificates curl gnupg
# Install NodeJS v18
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get -y install nodejs npm
# Disable Astro Telemtry
RUN npx astro telemetry disable
# Install Packages
RUN npm i
RUN npm install
RUN npm run translate
RUN npm run build
# Run
CMD npm start --host
ENV HOST=0.0.0.0
ENV PORT=1930
EXPOSE 1930
CMD node ./dist/server/entry.mjs