Clean up Dockerfile - remove constant platform flags
This commit is contained in:
parent
a7d2e86c73
commit
29b89f0b58
1 changed files with 3 additions and 6 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
# Build stage with explicit platform for Synology NAS compatibility
|
FROM node:20-alpine AS frontend-builder
|
||||||
FROM --platform=linux/amd64 node:20-alpine AS frontend-builder
|
|
||||||
WORKDIR /app/frontend
|
WORKDIR /app/frontend
|
||||||
|
|
||||||
COPY frontend-vite/package*.json ./
|
COPY frontend-vite/package*.json ./
|
||||||
|
|
@ -9,8 +8,7 @@ COPY frontend-vite/ .
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Build Backend (Rust)
|
FROM rust:1.85-alpine AS backend-builder
|
||||||
FROM --platform=linux/amd64 rust:1.85-alpine AS backend-builder
|
|
||||||
WORKDIR /app/backend
|
WORKDIR /app/backend
|
||||||
|
|
||||||
RUN apk add --no-cache musl-dev openssl-dev perl
|
RUN apk add --no-cache musl-dev openssl-dev perl
|
||||||
|
|
@ -21,8 +19,7 @@ RUN cargo fetch
|
||||||
COPY backend-rust/ ./
|
COPY backend-rust/ ./
|
||||||
RUN cargo build --release --bin backend-rust
|
RUN cargo build --release --bin backend-rust
|
||||||
|
|
||||||
# Final Runtime - using debian base for better amd64 compatibility on Synology
|
FROM python:3.11-slim-bookworm
|
||||||
FROM --platform=linux/amd64 python:3.11-slim-bookworm
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue