All checks were successful
Frontend CI / build (push) Successful in 1m37s
### Description - Updated deployment.yaml to specify separate build and push steps for frontend and backend. - Added Dockerfile for backend service to define build process. - Modified main.rs to bind the server to all network interfaces (0.0.0.0) instead of localhost. ### Package Changes _No response_ ### Screenshots _No response_ ### Reference Resolves #59 ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #60 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
16 lines
462 B
Docker
16 lines
462 B
Docker
FROM rust:1-slim AS base
|
|
RUN apt update -qq && apt install -y -qq --no-install-recommends musl-tools
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
FROM base AS builder
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN cargo build --release --target x86_64-unknown-linux-musl
|
|
|
|
FROM alpine:latest AS runner
|
|
WORKDIR /app
|
|
COPY --from=builder /app/target/x86_64-unknown-linux-musl/release/server .
|
|
EXPOSE 8080
|
|
ENV DATABASE_URL=postgres://postgres@localhost:5432/postgres
|
|
CMD ["./server"]
|