Skip to content

Commit

Permalink
Minimizing the docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
werewolfboy13 committed Sep 23, 2024
1 parent 7a25900 commit f563253
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ WORKDIR /opt/workdir
# Test to make sure packages are up to date
RUN apt update && apt upgrade -y

# Copy the core directory to the workdir
COPY . ./
# Copy the service across
COPY src ./src
COPY config ./config

# Copy main package.json
COPY package.json .

# Install dependencies
RUN npm i --omit-dev
Expand Down

0 comments on commit f563253

Please sign in to comment.