32 lines
767 B
Text
32 lines
767 B
Text
|
# Base
|
||
|
FROM debian:12-slim
|
||
|
|
||
|
# Set Work Directory
|
||
|
WORKDIR /minpluto
|
||
|
COPY . /minpluto
|
||
|
|
||
|
# 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 run translate
|
||
|
|
||
|
# Run
|
||
|
CMD npm start --host
|