Skip to content

Commit

Permalink
Merge pull request #44 from binaryoverload/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow authored Sep 23, 2024
2 parents dc6d0b7 + f99ef97 commit eced0be
Show file tree
Hide file tree
Showing 5 changed files with 1,041 additions and 1,003 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@

ARG app_dir="/home/node/app"


# * Base Node.js image
FROM node:20-alpine AS base
FROM node:20-slim AS base
ARG app_dir
WORKDIR ${app_dir}
RUN apk add --no-cache python3 py3-pip make gcc g++
RUN apt-get update && apt-get install -y python3 python3-pip make gcc g++

# * Installing production dependencies
FROM base AS dependencies
Expand All @@ -29,7 +28,6 @@ RUN --mount=type=bind,source=package.json,target=package.json \
COPY . .
RUN npm run build


# * Running the final application
FROM base AS final
ARG app_dir
Expand All @@ -44,6 +42,7 @@ COPY package.json .

COPY --from=dependencies ${app_dir}/node_modules ${app_dir}/node_modules
COPY --from=build ${app_dir}/dist ${app_dir}/dist
COPY lib lib

VOLUME ["./config.json", "./database"]

Expand Down
Loading

0 comments on commit eced0be

Please sign in to comment.