-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add Dockerfile * fix src/index.ts not found? * remove testing phase in Dockerfile * fix paths * rewrite Dockerfile * test edits * rewrite Dockerfile again * some edits * some more edits * last test for this pr (probably) * move `discord-api-types` to dependencies and regenerate bun.lockb * fix start script not found * update dockerfile * test again? sigh * retry in a new day * minor change * fix issues * update README.md * rename /temp/install -> /temp/uncivserver * bump version
- Loading branch information
1 parent
8ca2bab
commit c156e24
Showing
5 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,3 @@ package-lock.json | |
# yarn | ||
yarn.lock | ||
|
||
# bun | ||
bun.lockb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM oven/bun:1 AS base | ||
WORKDIR /usr/touhidurrr/app | ||
|
||
# install dependencies into temp directory | ||
# this will cache them and speed up future builds | ||
FROM base AS install | ||
RUN mkdir -p /temp/uncivserver | ||
COPY package.json bun.lockb /temp/uncivserver/ | ||
RUN cd /temp/uncivserver && bun install --frozen-lockfile --production | ||
|
||
# copy node_modules from temp directory | ||
# then copy all (non-ignored) project files into the image | ||
FROM base AS release | ||
COPY --from=install /temp/uncivserver/node_modules node_modules | ||
COPY package.json package.json | ||
COPY tsconfig.json tsconfig.json | ||
COPY public public | ||
COPY src src | ||
|
||
# run the app | ||
EXPOSE 1557/tcp | ||
ENTRYPOINT [ "bun", "start" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters