🔧 Install openssl layer to the default docker image
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -1,6 +1,7 @@
|
|||||||
FROM node:20.5-slim
|
FROM node:20.5-slim
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
# Define node.js environment variables
|
||||||
ENV NEXT_TELEMETRY_DISABLED 1
|
ENV NEXT_TELEMETRY_DISABLED 1
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
ENV NODE_OPTIONS '--no-experimental-fetch'
|
ENV NODE_OPTIONS '--no-experimental-fetch'
|
||||||
@@ -9,21 +10,18 @@ COPY next.config.js ./
|
|||||||
COPY public ./public
|
COPY public ./public
|
||||||
COPY package.json ./package.json
|
COPY package.json ./package.json
|
||||||
COPY yarn.lock ./yarn.lock
|
COPY yarn.lock ./yarn.lock
|
||||||
|
|
||||||
# Automatically leverage output traces to reduce image size
|
# Automatically leverage output traces to reduce image size
|
||||||
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
||||||
COPY .next/standalone ./
|
COPY .next/standalone ./
|
||||||
COPY .next/static ./.next/static
|
COPY .next/static ./.next/static
|
||||||
|
|
||||||
COPY prisma/schema.prisma prisma/schema.prisma
|
COPY prisma/schema.prisma prisma/schema.prisma
|
||||||
|
|
||||||
COPY ./scripts/run.sh ./scripts/run.sh
|
COPY ./scripts/run.sh ./scripts/run.sh
|
||||||
|
|
||||||
# RUN npm config set unsafe-perm true
|
# Install dependencies
|
||||||
# ARG NPM_CONFIG_LOGLEVEL=verbose
|
RUN apt-get update -y && apt-get install -y openssl
|
||||||
RUN yarn global add prisma
|
RUN yarn global add prisma
|
||||||
RUN which prisma
|
|
||||||
|
|
||||||
|
# Expose the default application port
|
||||||
EXPOSE 7575
|
EXPOSE 7575
|
||||||
|
|
||||||
ENV PORT 7575
|
ENV PORT 7575
|
||||||
|
|||||||
Reference in New Issue
Block a user