mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-06-22 04:11:32 +10:00
fix: docker build
This commit is contained in:
+7
-8
@@ -1,9 +1,8 @@
|
|||||||
# pull pre-configured and updated build environment
|
# pull pre-configured and updated build environment
|
||||||
FROM debian:testing-20250317-slim AS build-system
|
FROM debian:testing-20250317-slim AS build-system
|
||||||
|
|
||||||
# setup workdir
|
# setup workdir - has to be the same filepath as app because fuckin' Prisma
|
||||||
RUN mkdir /build
|
WORKDIR /app
|
||||||
WORKDIR /build
|
|
||||||
|
|
||||||
# install dependencies and build
|
# install dependencies and build
|
||||||
RUN apt-get update -y
|
RUN apt-get update -y
|
||||||
@@ -11,18 +10,18 @@ RUN apt-get install node-corepack -y
|
|||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN NUXT_TELEMETRY_DISABLED=1 yarn install --network-timeout 1000000
|
RUN NUXT_TELEMETRY_DISABLED=1 yarn install --network-timeout 1000000
|
||||||
|
RUN NUXT_TELEMETRY_DISABLED=1 yarn prisma generate
|
||||||
RUN NUXT_TELEMETRY_DISABLED=1 yarn build
|
RUN NUXT_TELEMETRY_DISABLED=1 yarn build
|
||||||
|
|
||||||
# create run environment for Drop
|
# create run environment for Drop
|
||||||
FROM node:lts-slim AS run-system
|
FROM node:lts-slim AS run-system
|
||||||
|
|
||||||
RUN mkdir /app
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY --from=build-system /build/.output ./app
|
COPY --from=build-system /app/.output ./app
|
||||||
COPY --from=build-system /build/prisma ./prisma
|
COPY --from=build-system /app/prisma ./prisma
|
||||||
COPY --from=build-system /build/package.json ./
|
COPY --from=build-system /app/package.json ./
|
||||||
COPY --from=build-system /build/build ./startup
|
COPY --from=build-system /app/build ./startup
|
||||||
|
|
||||||
# OpenSSL as a dependency for Drop (TODO: seperate build environment)
|
# OpenSSL as a dependency for Drop (TODO: seperate build environment)
|
||||||
RUN apt-get update -y && apt-get install -y openssl
|
RUN apt-get update -y && apt-get install -y openssl
|
||||||
|
|||||||
Reference in New Issue
Block a user