3 Commits
Author SHA1 Message Date
marc 915143a3fc forgot to uncomment pipfile from dockerignore
Docker / build (push) Canceled after 0s
Pylint / build (push) Canceled after 0s
2022-08-20 01:17:12 +02:00
marc c90df1c762 ignoring requirements.txt 2022-08-20 01:15:56 +02:00
marc d21e2fadf5 multistage 2022-08-20 01:14:37 +02:00
2 changed files with 16 additions and 10 deletions
+1 -2
View File
@@ -15,8 +15,7 @@ venv
.buildpacks
*.pem
*.crt
Pipfile
Pipfile.lock
.travis.yml
.gitignore
.dockerignore
requirements.txt
+15 -8
View File
@@ -1,4 +1,15 @@
FROM python:3.7.12
FROM python:3.7.12-alpine as builder
COPY . /app
WORKDIR /app
RUN apk update
RUN apk add curl npm
RUN pip install pipenv
RUN pipenv update
RUN npm install
FROM python:3.7.12-alpine
# ARG timestamp
# ARG commit
LABEL maintainer="marc.partensky@gmail.com"
@@ -8,15 +19,11 @@ LABEL link="https://marcpartensky.com"
# LABEL build.timestamp=timestamp
# LABEL build.commit=commit
COPY . /app
COPY --from=builder . /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
RUN apk update
RUN apk add curl npm
# No .pyo and easier debugging
ENV PYTHONDONTWRITEBYTECODE 1