Switch to LibreTunes' docker-leptos image as Docker image base
This commit is contained in:
parent
573c4f4331
commit
997a9d2b15
10
Dockerfile
10
Dockerfile
@ -1,24 +1,18 @@
|
|||||||
FROM rust:slim AS builder
|
FROM registry.mregirouard.com/libretunes/ops/docker-leptos:latest as builder
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Select the nightly toolchain and add needed targets
|
# Add target for static linking
|
||||||
RUN rustup toolchain install nightly
|
|
||||||
RUN rustup default nightly
|
|
||||||
RUN rustup target add wasm32-unknown-unknown
|
|
||||||
RUN rustup target add x86_64-unknown-linux-musl
|
RUN rustup target add x86_64-unknown-linux-musl
|
||||||
|
|
||||||
# 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 \
|
||||||
libssl-dev \
|
|
||||||
pkg-config \
|
|
||||||
npm \
|
npm \
|
||||||
musl-tools; \
|
musl-tools; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
RUN cargo install cargo-leptos
|
|
||||||
RUN npm install tailwindcss -g
|
RUN npm install tailwindcss -g
|
||||||
|
|
||||||
# Copy project dependency manifests
|
# Copy project dependency manifests
|
||||||
|
Loading…
x
Reference in New Issue
Block a user