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

This commit is contained in:
Wojciech Kwolek 2020-08-31 23:01:16 +02:00
parent 1ec4f14a4a
commit 64ddd190b6
3 changed files with 16 additions and 107737 deletions

View File

@ -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()"]

File diff suppressed because it is too large Load Diff

View File

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