Skip to content

Commit

Permalink
UPDATE: Dockerfile to latest node
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Dec 23, 2023
1 parent b389852 commit 88d3aa1
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM mhart/alpine-node:8 as base
RUN apk update && apk upgrade && apk add --no-cache \
bash \
git \
openssh
RUN adduser -D appuser -h /app
FROM node:20-bookworm-slim
RUN groupadd -r appuser && \
useradd --create-home --gid appuser --home-dir /app --no-log-init --system appuser

WORKDIR /app
ARG COMMIT="(not set)"
ARG LASTMOD="(not set)"
ENV COMMIT=$COMMIT
ENV LASTMOD=$LASTMOD
WORKDIR /app
USER appuser
COPY --chown=appuser:appuser . .
RUN npm install
Expand Down

0 comments on commit 88d3aa1

Please sign in to comment.