mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 00:06:28 +00:00
Nicco
c3b1772728
* testing * try playwrigth * testing * add pr support * not on each commit * add test ids * make backend more configuratble * 2.0.2 * spec
30 lines
585 B
Docker
30 lines
585 B
Docker
# FRONTEND
|
|
FROM node:16-alpine as client
|
|
WORKDIR /tmp
|
|
RUN npm install -g pnpm@7
|
|
COPY ./frontend ./
|
|
RUN pnpm install
|
|
RUN pnpm exec svelte-kit sync
|
|
RUN pnpm run build
|
|
|
|
|
|
# BACKEND
|
|
FROM rust:1.61-alpine as backend
|
|
WORKDIR /tmp
|
|
RUN apk add libc-dev openssl-dev alpine-sdk
|
|
COPY ./backend/Cargo.* ./
|
|
RUN cargo fetch
|
|
COPY ./backend ./
|
|
RUN cargo build --release
|
|
|
|
|
|
# RUNNER
|
|
FROM alpine
|
|
WORKDIR /app
|
|
COPY --from=backend /tmp/target/release/cryptgeon .
|
|
COPY --from=client /tmp/build ./frontend
|
|
ENV FRONTEND_PATH="./frontend"
|
|
ENV REDIS="redis://redis/"
|
|
EXPOSE 5000
|
|
ENTRYPOINT [ "/app/cryptgeon" ]
|