feat: Move to Astro

This commit is contained in:
2023-06-14 02:21:36 +02:00
parent 908d43f299
commit 0f7128814c
21 changed files with 6580 additions and 4033 deletions

View File

@ -1,7 +1,13 @@
# This Dockerfile allows you to run NextJS in server mode
#########
# Build #
#########
FROM node:alpine as BUILD_IMAGE
FROM docker.io/node:alpine as BUILD_IMAGE
# External deps (for node-gyp add: "python3 make g++")
# git is used to install the npm packages with git deps
RUN apk add --no-cache git
# run as non root user
USER node
@ -21,10 +27,15 @@ ADD --chown=node:node . .
# build
RUN npm run build
RUN npm prune --omit=dev
##############
# Production #
##############
FROM node:latest as PROD_IMAGE
# inform software to be in production
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV CONFIGS_PATH=./configs
# Download & Install Slic3r
# RUN apt-get update \
@ -41,6 +52,7 @@ RUN apt-get update \
prusa-slicer \
&& apt-get remove prusa-slicer -y \
&& rm -rf /var/lib/apt/lists/*
ENV PATH /opt/PrusaSlicer-2.5.2+linux-x64-GTK3-202303231201/bin:$PATH
ENV SLICER_PATH prusa-slicer