try w ubuntu

This commit is contained in:
lingdocs 2022-02-10 03:03:56 +04:00
parent 54293c892a
commit 2eb9430542
1 changed files with 7 additions and 2 deletions

View File

@ -16,8 +16,13 @@ RUN npm run build
# Production image, copy all the files and run next # Production image, copy all the files and run next
# or pandoc/core@alpine # or pandoc/core@alpine
# FROM pandoc/core AS runner # FROM pandoc/core AS runner
FROM alpine:latest AS runner FROM ubuntu AS runner
RUN apk add nodejs npm RUN DEBIAN_FRONTEND=noninteractive apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y curl pandoc
RUN curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
RUN bash nodesource_setup.sh
RUN apt install nodejs
WORKDIR /app WORKDIR /app
# You only need to copy next.config.js if you are NOT using the default configuration # You only need to copy next.config.js if you are NOT using the default configuration