-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (24 loc) · 759 Bytes
/
Dockerfile
File metadata and controls
35 lines (24 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM golang:1.21.6-alpine as marmounter
RUN apk --no-cache add fuse-dev gcc musl-dev
WORKDIR /mayakashi
COPY go.mod go.sum .
RUN go mod download
COPY proto ./proto
COPY marmounter ./marmounter
RUN go build -o marmounter.exe ./marmounter
FROM rust:1.72.0-alpine as mayakashi
RUN apk --no-cache add musl-dev protoc protobuf-dev
WORKDIR /mayakashi
COPY Cargo.toml Cargo.lock .
RUN mkdir src && touch src/main.rs && cargo fetch
COPY build.rs .
COPY proto ./proto
COPY src/ ./src/
RUN cargo build --release
FROM python:3.12-alpine
RUN apk --no-cache add fuse
WORKDIR /mayakashi
COPY --from=marmounter /mayakashi/marmounter.exe .
COPY --from=mayakashi /mayakashi/target/release/mayakashi ./mayakashi.exe
COPY tests ./tests
CMD ["python3", "tests/e2e.py"]