-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e052959
commit 6f8e59e
Showing
65 changed files
with
97 additions
and
57,598 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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
# production | ||
/build | ||
/dist | ||
/lib | ||
|
||
# misc | ||
*~ | ||
|
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,25 @@ | ||
ARG node_version=18-alpine | ||
|
||
FROM node:${node_version} AS build | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN npm ci && npm run build:server | ||
|
||
FROM node:${node_version} | ||
|
||
RUN apk update && apk upgrade | ||
|
||
WORKDIR /app | ||
USER node | ||
|
||
COPY --from=build /app/package.json . | ||
COPY --from=build /app/package-lock.json . | ||
COPY --from=build /app/lib ./lib | ||
COPY --from=build /app/node_modules ./node_modules | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
CMD ["npm", "run", "start:server"] |
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,5 @@ | ||
version: '3' | ||
services: | ||
bataille-server: | ||
container_name: bataille-server | ||
build: . |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.