12 Commits
Author SHA1 Message Date
marc 8e77d7c64e dont ignore my pipfiles
Docker / build (push) Canceled after 0s
Pylint / build (push) Canceled after 0s
2022-08-20 01:06:17 +02:00
marc 550419381a back to root 2022-08-20 01:04:06 +02:00
marc fc9f4cde3b opt website 2022-08-20 01:03:13 +02:00
marc 3f2b863f5a workdir app 2022-08-20 01:02:05 +02:00
marc 8231096b4d npm 2022-08-20 01:00:39 +02:00
marc 87268abcc3 latest python 2022-08-20 00:57:49 +02:00
marc c67e613ba2 local docker cache 2022-08-20 00:48:45 +02:00
marc 76985fa799 Merge branch 'master' into arch 2022-08-20 00:46:15 +02:00
marc dae43435e4 arch 2022-08-20 00:33:11 +02:00
marc ba7998c636 paru 2022-08-20 00:28:34 +02:00
marc 0ac6f00ef0 arch 2022-08-20 00:26:13 +02:00
marc 2bdc141e2d archlinux first try 2022-08-20 00:11:14 +02:00
3 changed files with 18 additions and 16 deletions
-1
View File
@@ -18,4 +18,3 @@ venv
.travis.yml
.gitignore
.dockerignore
requirements.txt
+6
View File
@@ -38,4 +38,10 @@ jobs:
context: .
push: false
tags: marcpartensky/website:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
+12 -15
View File
@@ -1,30 +1,27 @@
FROM python:3.7.12-alpine as builder
COPY . /app
WORKDIR /app
RUN apk update
RUN apk add curl npm
RUN pip install pipenv
FROM marcpartensky/paru:latest as builder
RUN paru -Syyyu --noconfirm python-pipenv npm make
USER root
COPY . /opt/website
WORKDIR /opt/website
RUN pipenv update
RUN pipenv run ./manage.py collectstatic --noinput
RUN npm install -g npm@latest
RUN npm install
FROM python:3.7.12-alpine
# ARG timestamp
# ARG commit
FROM marcpartensky/paru:latest
LABEL maintainer="marc.partensky@gmail.com"
LABEL image="https://hub.docker.com/r/marcpartensky/website"
LABEL source="https://github.com/marcpartensky/website"
LABEL link="https://marcpartensky.com"
RUN paru -Syyyu --noconfirm python npm
# ARG timestamp
# ARG commit
# LABEL build.timestamp=timestamp
# LABEL build.commit=commit
COPY --from=builder . /app
COPY --from=builder /app /app
WORKDIR /app
RUN apk update
RUN apk add curl npm
# No .pyo and easier debugging
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1