Skip to content

Commit

Permalink
Merge pull request #122 from GenieWizards/feat/115-fix-create-a-test-…
Browse files Browse the repository at this point in the history
…db-in-docker-compose-dev-file

Feat/115 fix create a test db in docker compose dev file
  • Loading branch information
shivamvijaywargi authored Dec 20, 2024
2 parents 6f8178f + dd10a78 commit a294acd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /usr/src/app

# Development stage - new addition
FROM base AS development
COPY package.json bun.lockb ./
COPY package.json bun.lock ./
RUN bun install
COPY ./src ./src
COPY ./package.json .
Expand All @@ -17,13 +17,13 @@ CMD ["bun", "--hot", "run", "src/index.ts"]
# this will cache them and speed up future builds
FROM base AS install
RUN mkdir -p /temp/dev
COPY package.json bun.lockb /temp/dev/
COPY package.json bun.lock /temp/dev/
WORKDIR /temp/dev
RUN bun install --frozen-lockfile

# install with --production flag to avoid installing dev dependencies
RUN mkdir -p /temp/prod
COPY package.json bun.lockb /temp/prod/
COPY package.json bun.lock /temp/prod/
WORKDIR /temp/prod
RUN bun install --frozen-lockfile --production

Expand Down Expand Up @@ -59,5 +59,4 @@ echo "Starting the application..."
exec bun run src/index.ts
EOF

ENTRYPOINT [ "/usr/src/app/start.sh" ]

ENTRYPOINT [ "/usr/src/app/start.sh" ]
3 changes: 3 additions & 0 deletions bun.lock
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"devDependencies": {
"@antfu/eslint-config": "^3.12.0",
"@types/bun": "latest",
"@types/k6": "^0.54.2",
"commitizen": "^4.3.1",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^9.17.0",
Expand Down Expand Up @@ -221,6 +222,8 @@

"@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="],

"@types/k6": ["@types/k6@0.54.2", "", {}, "sha512-B5LPxeQm97JnUTpoKNE1UX9jFp+JiJCAXgZOa2P7aChxVoPQXKfWMzK+739xHq3lPkKj1aV+HeOxkP56g/oWBg=="],

"@types/mdast": ["@types/mdast@4.0.4", "", { "dependencies": { "@types/unist": "*" } }, "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA=="],

"@types/ms": ["@types/ms@0.7.34", "", {}, "sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g=="],
Expand Down

0 comments on commit a294acd

Please sign in to comment.