mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2024-12-22 08:16:28 +00:00
Nicco
d7e5a34b14
* move to packages * update deps * update deps * actions maintenance * don't use blob * cli * fix default import * use synthetic default imports * remove comment * cli packaging * node 18 guard * packages * build system * testing * test pipeline * pipelines * changelog * version bump * update locales * update deps * update deps * update dependecies
29 lines
599 B
Docker
29 lines
599 B
Docker
# FRONTEND
|
|
FROM node:18-alpine as client
|
|
WORKDIR /tmp
|
|
RUN npm install -g pnpm@8
|
|
COPY . .
|
|
RUN pnpm install --frozen-lockfile
|
|
RUN pnpm run build
|
|
|
|
|
|
# BACKEND
|
|
FROM rust:1.69-alpine as backend
|
|
WORKDIR /tmp
|
|
RUN apk add libc-dev openssl-dev alpine-sdk
|
|
COPY ./packages/backend/Cargo.* ./
|
|
RUN cargo fetch
|
|
COPY ./packages/backend ./
|
|
RUN cargo build --release
|
|
|
|
|
|
# RUNNER
|
|
FROM alpine
|
|
WORKDIR /app
|
|
COPY --from=backend /tmp/target/release/cryptgeon .
|
|
COPY --from=client /tmp/packages/frontend/build ./frontend
|
|
ENV FRONTEND_PATH="./frontend"
|
|
ENV REDIS="redis://redis/"
|
|
EXPOSE 8000
|
|
ENTRYPOINT [ "/app/cryptgeon" ]
|