1
Fork 0
This repository has been archived on 2024-12-04. You can view files and clone it, but cannot push or open issues or pull requests.
MinPluto-Frontend/Dockerfile
2024-04-14 23:56:13 -04:00

32 lines
No EOL
767 B
Docker

# 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