build: 🐋 move Docker image to (Debian)

This commit is contained in:
ThatOneCalculator 2023-08-09 17:45:17 -07:00
parent 2715857dff
commit 9104bb9579
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -1,9 +1,11 @@
## Install dev and compilation dependencies, build files ## Install dev and compilation dependencies, build files
FROM alpine:3.18 as build FROM node:latest as build
WORKDIR /firefish WORKDIR /firefish
# Install compilation dependencies # Install compilation dependencies
RUN apk add --no-cache --no-progress git alpine-sdk python3 nodejs-current npm rust cargo vips RUN apt-get update && apt-get install -y git wget curl build-essential python3
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
RUN source "$HOME/.cargo/env"
# Copy only the cargo dependency-related files first, to cache efficiently # Copy only the cargo dependency-related files first, to cache efficiently
COPY packages/backend/native-utils/Cargo.toml packages/backend/native-utils/Cargo.toml COPY packages/backend/native-utils/Cargo.toml packages/backend/native-utils/Cargo.toml