b1uedev
b1uedev
RRailway
Created by b1uedev on 5/21/2024 in #✋|help
Python deployment showing wrong logging type
No description
15 replies
RRailway
Created by b1uedev on 5/22/2023 in #✋|help
Questions about the Developer plan
If I add a card to unlock the developer plan, then remove the card, will I lose access to the plan?
20 replies
RRailway
Created by b1uedev on 10/16/2022 in #✋|help
Cannot use Dockerfile properly
Project ID: e63e1e3d-bdae-455f-9c76-d709ea072fc4 I have a Dockerfile like this:
FROM debian:11-slim AS build
RUN apt-get update
RUN apt-get install --no-install-suggests --no-install-recommends --yes python3-venv gcc libpython3-dev
RUN apt-get clean
RUN python3 -m venv /venv

FROM build AS export-req
COPY requirements.txt /
RUN /venv/bin/pip install -r requirements.txt

FROM gcr.io/distroless/python3-debian11
COPY --from=export-req /venv /venv
COPY . /app
WORKDIR /app
ENTRYPOINT ["/venv/bin/python3", "bot.py"]
FROM debian:11-slim AS build
RUN apt-get update
RUN apt-get install --no-install-suggests --no-install-recommends --yes python3-venv gcc libpython3-dev
RUN apt-get clean
RUN python3 -m venv /venv

FROM build AS export-req
COPY requirements.txt /
RUN /venv/bin/pip install -r requirements.txt

FROM gcr.io/distroless/python3-debian11
COPY --from=export-req /venv /venv
COPY . /app
WORKDIR /app
ENTRYPOINT ["/venv/bin/python3", "bot.py"]
The problem is, Railway never read and install the requirements.txt when deploying, leading to my application has no packages to deploy, thus, fail. Any idea why this can occur?
1 replies