From f8d07c4bb8f8d0114c42888eeab7955294637397 Mon Sep 17 00:00:00 2001 From: Alivecow Date: Tue, 25 Feb 2025 09:16:49 +0100 Subject: [PATCH] refactor: Renaming Dockerfile and changing structure Refs: OPS-10 The Dockerfile is renamed to the canonical name and not contains multiple stages to eventually support dev and pod builds --- Dockerfile-DEV => Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) rename Dockerfile-DEV => Dockerfile (86%) diff --git a/Dockerfile-DEV b/Dockerfile similarity index 86% rename from Dockerfile-DEV rename to Dockerfile index a305520..a3b1136 100644 --- a/Dockerfile-DEV +++ b/Dockerfile @@ -1,18 +1,19 @@ -# syntax=docker/dockerfile:1 - -FROM python:3.12-alpine +FROM python:3.12-alpine AS base # VENV not needed in docker container ENV POETRY_VIRTUALENVS_CREATE=false WORKDIR /app -COPY . . +COPY . . # Install dependencies RUN pip install poetry RUN poetry install + +FROM base as dev + # Expose development port EXPOSE 5000