forked from cross-seed/cross-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cross-seed:master' into master
- Loading branch information
Showing
5 changed files
with
72 additions
and
21 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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
FROM node:16 | ||
# Build Stage | ||
FROM node:18-alpine AS build-stage | ||
WORKDIR /usr/src/cross-seed | ||
RUN npm install -g npm@9 | ||
COPY package*.json ./ | ||
RUN npm ci | ||
ENV CONFIG_DIR=/config | ||
ENV DOCKER_ENV=true | ||
RUN npm install -g npm@9 \ | ||
&& npm ci | ||
COPY tsconfig.json tsconfig.json | ||
COPY src src | ||
RUN npm run build | ||
RUN npm run build \ | ||
&& npm prune --production \ | ||
&& rm -rf src tsconfig.json | ||
|
||
# Production Stage | ||
FROM node:18-alpine | ||
WORKDIR /usr/src/cross-seed | ||
COPY --from=build-stage /usr/src/cross-seed . | ||
RUN npm link | ||
RUN apk add --no-cache curl | ||
ENV CONFIG_DIR=/config | ||
ENV DOCKER_ENV=true | ||
EXPOSE 2468 | ||
WORKDIR /config | ||
ENTRYPOINT ["cross-seed"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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