R
Railway2y ago
root

Logs not showing & docker not caching

Project ID: 6935b899-6cdf-43f9-b604-1e667b9b80b3 The problem: I'm logging a bunch of stuff to stdout, but it's not showing up in the deploy logs. Not a problem, just wondering: Why is Docker not caching the first command in my Dockerfile? It shouldn't depend on anything, should it? Here's my Dockerfile:
FROM quay.io/fedora/fedora:37

RUN dnf install -y meson ninja-build wget gcc git vala glib-devel libsoup3-devel libgee-devel json-glib-devel libpq-devel

ADD . /app
WORKDIR /app

ARG DATABASE_URL
ENV DATABASE_URL=${DATABASE_URL}

RUN git clone https://github.com/aleksrutins/vala-console subprojects/vala-console
RUN meson builddir -Dbuild_server=true -Dbuild_client=false && ninja -C builddir

ARG SECRET_KEY
ENV SECRET_KEY=${SECRET_KEY}

ARG PORT
ENV PORT=${PORT}

CMD [ "/app/builddir/server/valapkg-server" ]
FROM quay.io/fedora/fedora:37

RUN dnf install -y meson ninja-build wget gcc git vala glib-devel libsoup3-devel libgee-devel json-glib-devel libpq-devel

ADD . /app
WORKDIR /app

ARG DATABASE_URL
ENV DATABASE_URL=${DATABASE_URL}

RUN git clone https://github.com/aleksrutins/vala-console subprojects/vala-console
RUN meson builddir -Dbuild_server=true -Dbuild_client=false && ninja -C builddir

ARG SECRET_KEY
ENV SECRET_KEY=${SECRET_KEY}

ARG PORT
ENV PORT=${PORT}

CMD [ "/app/builddir/server/valapkg-server" ]
3 Replies
Percy
Percy2y ago
Project ID: 6935b899-6cdf-43f9-b604-1e667b9b80b3
Percy
Percy2y ago
It appears that there is a caching issue with Docker, so it may be necessary to redeploy the project or add a dummy environment variable.
⚠️ experimental feature
root
root2y ago
My server is working fine, to clarify.