Skip to content

Commit

Permalink
Merge pull request #307 from dockersamples/update-versions
Browse files Browse the repository at this point in the history
Update versions
  • Loading branch information
mikesir87 authored Oct 24, 2023
2 parents d268b89 + 67cab55 commit cdfd5e0
Show file tree
Hide file tree
Showing 7 changed files with 336 additions and 537 deletions.
16 changes: 7 additions & 9 deletions result/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
FROM node:18-slim

# add curl for healthcheck
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
tini \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && \
apt-get install -y --no-install-recommends curl tini && \
rm -rf /var/lib/apt/lists/*

WORKDIR /app
WORKDIR /usr/local/app

# have nodemon available for local dev use (file watching)
RUN npm install -g nodemon

COPY package*.json ./

RUN npm ci \
&& npm cache clean --force \
&& mv /app/node_modules /node_modules
RUN npm ci && \
npm cache clean --force && \
mv /usr/local/app/node_modules /node_modules

COPY . .

Expand Down
Loading

0 comments on commit cdfd5e0

Please sign in to comment.