Skip to content

Commit

Permalink
Alpine Linux attempt
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoli Nicolae <[email protected]>
  • Loading branch information
anatolinicolae committed Mar 26, 2024
1 parent f0b1bfc commit fa6486b
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile.image
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
# Base Node image
FROM node:20-bookworm-slim AS base
FROM node:20-alpine3.19 AS base

# Set for base and all layer that inherit from it
ENV PORT="8080"
ENV NODE_ENV="production"
ARG DEBIAN_FRONTEND="noninteractive"
WORKDIR /src

# Install openssl for Prisma
RUN apt-get update && \
apt-get install -y openssl && \
rm -rf /var/lib/apt/lists/*
RUN apk add --no-cache openssl && \
rm -rf /var/cache/apk/*

# Install all node_modules, including dev dependencies
FROM base AS deps
Expand Down

0 comments on commit fa6486b

Please sign in to comment.