Skip to content

Containerise backend with Dockerfile and docker-compose for local dev #10

@GavT

Description

@GavT

Summary

There is no Dockerfile for the backend. Deployment is manual and environment setup is undocumented.

What to create

Dockerfile:

FROM eclipse-temurin:17-jre-alpine
WORKDIR /app
COPY backend/build/libs/backend-all.jar app.jar
ENV PORT=5000
EXPOSE 5000
ENTRYPOINT ["java", "-jar", "app.jar"]

docker-compose.yml (local dev):

services:
  backend:
    build: .
    ports: ["5000:5000"]
    environment:
      FUEL_FINDER_CLIENT_ID: ${FUEL_FINDER_CLIENT_ID}
      FUEL_FINDER_CLIENT_SECRET: ${FUEL_FINDER_CLIENT_SECRET}
      KTOR_ENV: dev

Also

  • Add .dockerignore
  • Document deployment steps in README.md
  • Add Docker build to CI workflow

Workstream: WS3 Phase 3A

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Hardening / refinement / nice-to-have — not blocking launchWS3-releaseWorkstream 3 – Release Planningci-cdCI/CD and release pipeline

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions