Skip to content

Commit

Permalink
Merge pull request #2206 from Amsterdam/dockerfile/update
Browse files Browse the repository at this point in the history
Test Dockerfile
  • Loading branch information
remyvdwereld authored Jul 22, 2023
2 parents afa63c0 + b51b112 commit 9843aca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ RUN mkdir -p $DIR/builds/production

WORKDIR $DIR

# Install ca-certificates to handle SSL certificate verification
RUN apk add --no-cache ca-certificates

# install dependencies
RUN npm ci --production --unsafe-perm --ignore-scripts .

Expand All @@ -32,8 +29,10 @@ RUN mv $DIR/build/* $DIR/builds/acceptance/
# Use the official Nginx image as the final stage
FROM nginx:stable-alpine

# Install ca-certificates to handle SSL certificate verification
# Install libx11 for Nginx (if needed)
RUN apk update && apk add --no-cache libx11
RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates && apk add --no-cache libx11


# Copy the nginx configuration
ADD nginx.conf /etc/nginx/nginx.conf
Expand Down

0 comments on commit 9843aca

Please sign in to comment.