-
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
1 parent
db2521c
commit df88210
Showing
1 changed file
with
12 additions
and
7 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,10 +1,15 @@ | ||
FROM node:lts | ||
WORKDIR /react-app | ||
COPY public/ /react-app/public | ||
COPY src/ /react-app/src | ||
COPY package.json /react-app/ | ||
COPY tailwind.config.js /react-app/ | ||
WORKDIR /react-app-tmp | ||
COPY public/ /react-app-tmp/public | ||
COPY src/ /react-app-tmp/src | ||
COPY package.json /react-app-tmp/ | ||
COPY tailwind.config.js /react-app-tmp/ | ||
RUN npm install | ||
RUN npx tailwindcss -i /react-app/public/index.css -o /react-app/public/main.css | ||
RUN npx tailwindcss -i /react-app-tmp/public/index.css -o /react-app-tmp/public/main.css | ||
RUN export BUILD_PATH="/react-app" && npm run build | ||
RUN rm -rf /react-app-tmp | ||
WORKDIR /react-app | ||
RUN npm install -g serve | ||
LABEL org.opencontainers.image.source=https://github.com/M4RC02U1F4A4/YouTube-RSS | ||
CMD ["npm", "start"] | ||
ENTRYPOINT ["serve"] | ||
CMD ["-l" , "3000"] |