mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 07:39:29 +00:00
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
This commit is contained in:
parent
8f53233d28
commit
f8d07c4bb8
1 changed files with 5 additions and 4 deletions
|
|
@ -1,18 +1,19 @@
|
||||||
# syntax=docker/dockerfile:1
|
FROM python:3.12-alpine AS base
|
||||||
|
|
||||||
FROM python:3.12-alpine
|
|
||||||
|
|
||||||
# VENV not needed in docker container
|
# VENV not needed in docker container
|
||||||
ENV POETRY_VIRTUALENVS_CREATE=false
|
ENV POETRY_VIRTUALENVS_CREATE=false
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install poetry
|
RUN pip install poetry
|
||||||
RUN poetry install
|
RUN poetry install
|
||||||
|
|
||||||
|
|
||||||
|
FROM base as dev
|
||||||
|
|
||||||
# Expose development port
|
# Expose development port
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue