Skip to content

Commit

Permalink
Production ready
Browse files Browse the repository at this point in the history
  • Loading branch information
M4RC02U1F4A4 committed Jan 12, 2024
1 parent db2521c commit df88210
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions frontend/Dockerfile
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"]

0 comments on commit df88210

Please sign in to comment.