Queen
Queen
RRailway
Created by Queen on 6/25/2024 in #✋|help
Error: connect ETIMEDOUT/ECONNREFUSED on database connection
No description
3 replies
RRailway
Created by Queen on 5/3/2024 in #✋|help
Cache mount ID is not prefixed with cache key
Running a project on Docker, project runs locally, but not here. Here's how my Dockerfile looks like:
FROM node:20-alpine
WORKDIR /app

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

COPY package.json ./
COPY pnpm-lock.yaml ./
RUN --mount=type=cache,id=15e39893-903d-4d7a-97e0-f6f37a9da580,target=/pnpm/store pnpm install --frozen-lockfile

COPY . ./
RUN pnpm run build

EXPOSE 80
ENV SERVER__PORT=80
ENV NODE_ENV=production
CMD ["pnpm", "run", "start"]
FROM node:20-alpine
WORKDIR /app

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable

COPY package.json ./
COPY pnpm-lock.yaml ./
RUN --mount=type=cache,id=15e39893-903d-4d7a-97e0-f6f37a9da580,target=/pnpm/store pnpm install --frozen-lockfile

COPY . ./
RUN pnpm run build

EXPOSE 80
ENV SERVER__PORT=80
ENV NODE_ENV=production
CMD ["pnpm", "run", "start"]
I'd like to avoid sharing my repo if that's possible.
13 replies