Browse Source

make the tailwind generated css file smaller (kBs instead of mBs)

pull/13/head
Wojciech Kwolek 6 months ago
parent
commit
64ddd190b6
3 changed files with 16 additions and 107737 deletions
  1. 17
      Dockerfile
  2. 107732
      app/static/style.css
  3. 4
      tailwind.config.js

17
Dockerfile

@ -1,15 +1,24 @@
FROM node:current-alpine
COPY . /app/
WORKDIR /app
ENV NODE_ENV=production
RUN yarn install && yarn build && rm -rf node_modules
FROM python:3-slim-buster
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
ENV DATABASE_URL sqlite:////data/app.db
COPY ./requirements.txt /app/requirements.txt
ENV FLASK_APP app
ENV FLASK_DEBUG 0
COPY ./requirements.txt /requirements.txt
RUN apt-get update && \
apt-get install -y gosu && \
rm -rf /var/lib/apt/lists/* && \
pip install -r requirements.txt && pip install gunicorn
COPY . /app/
pip install -r /requirements.txt && pip install gunicorn
COPY --from=0 /app/ /app
WORKDIR /app
RUN flask digest compile
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:create_app()"]

107732
app/static/style.css
File diff suppressed because it is too large
View File

4
tailwind.config.js

@ -1,5 +1,7 @@
module.exports = {
purge: [],
purge: [
'./app/templates/**/*.html',
],
theme: {
extend: {},
},

Loading…
Cancel
Save