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 21 additions and 13 deletions
-2
View File
@@ -15,8 +15,6 @@ venv
.buildpacks
*.pem
*.crt
Pipfile
Pipfile.lock
.travis.yml
.gitignore
.dockerignore
+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
+15 -11
View File
@@ -1,23 +1,27 @@
FROM python:3.7.12
# ARG timestamp
# ARG commit
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 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 . /app
COPY --from=builder /app /app
WORKDIR /app
RUN apt-get update
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash
RUN apt-get install -y nodejs
RUN npm install -g npm@latest
RUN npm install
# No .pyo and easier debugging
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1