Add Docker build steps from old docker-leptos/musl image

This commit is contained in:
Ethan Girouard 2024-09-15 21:31:15 -04:00
parent cb0936003c
commit 074f866e5f
Signed by: eta357
GPG Key ID: 7BCDC36DFD11C146

View File

@ -1,14 +1,20 @@
FROM registry.mregirouard.com/libretunes/ops/docker-leptos/musl:latest as builder FROM clux/muslrust:nightly AS builder
WORKDIR /app WORKDIR /app
RUN rustup target add wasm32-unknown-unknown
# Install a few dependencies # Install a few dependencies
RUN set -eux; \ RUN set -eux; \
apt-get update; \ apt-get update; \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
pkg-config \
clang \
npm; \ npm; \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN cargo install cargo-leptos
RUN npm install tailwindcss@3.1.8 -g RUN npm install tailwindcss@3.1.8 -g
# Copy project dependency manifests # Copy project dependency manifests