-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Showing
36 changed files
with
3,219 additions
and
2,260 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,38 @@ | ||
FROM node:latest | ||
FROM node:current-alpine AS build | ||
|
||
LABEL Description="Project for automatically organizing and downloading Floatplane videos for plex." | ||
|
||
# Environment variables | ||
ENV headless=true | ||
ENV runQuickstartPrompts=false | ||
|
||
# Create Directory for the Container | ||
WORKDIR /fp | ||
|
||
# Define volumes to be mountable | ||
VOLUME /fp/db | ||
VOLUME /fp/videos | ||
# working directory for the build | ||
WORKDIR ${HOME} | ||
|
||
# Copy package configs into working Directory | ||
COPY ./package.json ./package-lock.json ./tsconfig.json /fp/ | ||
COPY ./package.json ./package-lock.json ./tsconfig.json ${HOME}/ | ||
|
||
# Install required packages | ||
RUN npm install | ||
RUN npm ci --omit-dev | ||
|
||
# Copy src files into Working Directory | ||
COPY ./src /fp/src | ||
COPY ./src ${HOME}/src | ||
|
||
# Compile the project | ||
RUN npx tsc | ||
|
||
# Copy built artifacts and dependencies into a minimal release image | ||
FROM node:current-alpine AS release | ||
|
||
LABEL Description="Project for automatically organizing and downloading Floatplane videos for plex." | ||
|
||
# Create Directory for the Container | ||
WORKDIR /fp | ||
|
||
COPY --from=build ${HOME}/node_modules node_modules | ||
COPY --from=build ${HOME}/dist dist | ||
COPY --from=build ${HOME}/package.json package.json | ||
|
||
# Environment variables | ||
ENV headless=true | ||
|
||
# Define volumes to be mountable | ||
VOLUME /fp/db | ||
VOLUME /fp/videos | ||
|
||
# Runs on container start | ||
CMD node ./dist/float.js | ||
CMD node ./dist/float.js |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.