-
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.
- Loading branch information
Danilo Romano
committed
Mar 18, 2022
1 parent
9e9fbe7
commit 2b1dd11
Showing
9 changed files
with
172 additions
and
40 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,17 +1,25 @@ | ||
FROM node:17-slim | ||
|
||
ARG APP_NAME=spotify-radio | ||
ARG HOME=/home/node | ||
|
||
RUN apt-get update \ | ||
&& apt-get install sox libsox-fmt-mp3 -y | ||
#libsox-fmt-all | ||
USER node | ||
|
||
RUN mkdir -p ${HOME}/${APP_NAME} | ||
|
||
WORKDIR /spotify-radio | ||
WORKDIR ${HOME}/${APP_NAME} | ||
|
||
ENV NPM_CONFIG_PREFIX=$HOME/.npm-global | ||
# allow npx executions like jest to work | ||
ENV PATH=$PATH:$HOME/.npm-global/bin | ||
|
||
COPY package*.json ./ | ||
|
||
RUN npm ci --silent | ||
|
||
COPY . . | ||
|
||
USER node | ||
COPY --chown=node:node . . | ||
|
||
CMD npm 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
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
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