Skip to content

Commit

Permalink
fix: removed another chained command
Browse files Browse the repository at this point in the history
  • Loading branch information
noahstreller committed Nov 26, 2024
1 parent 03daba2 commit 4b1f4c7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
# Base image
FROM node:18-alpine

RUN apk add --no-cache libc6-compat

# Set working directory
WORKDIR /app

# Copy application files and install dependencies, then build the application
COPY / /app
RUN apk add --no-cache libc6-compat && npm ci

RUN npm ci
RUN npm run build

# Set environment variables
ENV NODE_ENV=production \
NEXT_TELEMETRY_DISABLED=1 \
PORT=3000 \
HOSTNAME="0.0.0.0"
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"

# Expose the application port
EXPOSE 3000
Expand Down

0 comments on commit 4b1f4c7

Please sign in to comment.