diff --git a/Dockerfile b/Dockerfile index b4a4635..ed7488f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:buster-slim +FROM node:buster-slim as builder WORKDIR /usr/app @@ -17,6 +17,20 @@ COPY . . RUN yarn build +FROM node:buster-slim + +WORKDIR /app + +RUN apt-get update && \ + apt-get install -y build-essential \ + wget \ + python3 \ + make \ + gcc \ + libc6-dev + +COPY --from=builder /usr/app /app/ + EXPOSE 3333 CMD ["yarn", "start"]