mirror of
https://github.com/kind-0/nsecbunkerd.git
synced 2025-03-17 21:32:53 +01:00
Removing "--platform=" and slightly re-structuring the "apt-get" calls allows for this image to be successfuly built for arm64 as well - at least on an arm64 host.
24 lines
466 B
Docker
24 lines
466 B
Docker
FROM node:19-buster-slim as build
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update -y && apt-get install -y openssl python3 build-essential make gcc
|
|
|
|
COPY package.json package-lock.json ./
|
|
RUN npm i
|
|
|
|
RUN apt-get purge -y gcc make build-essential && apt-get autoremove -y
|
|
|
|
COPY src/ src/
|
|
COPY prisma/schema.prisma prisma/
|
|
COPY tsconfig.json ./
|
|
|
|
RUN npx prisma generate
|
|
|
|
RUN npm run build
|
|
|
|
RUN npm i
|
|
RUN npx prisma migrate deploy
|
|
|
|
ENTRYPOINT [ "node", "dist/index.js" ]
|
|
CMD ["start"]
|