Skip to content
Snippets Groups Projects
Verified Commit 95ce0c08 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Improved dockerfile

parent 058cc83b
No related merge requests found
FROM php:7.3-apache
FROM k8r.eu/justjanne/php:latest
RUN apt-get update && apt-get install -y \
libpq-dev \
libsqlite3-dev
RUN apk add --no-cache --update \
php-json \
php-pdo_sqlite \
php-pdo_pgsql
RUN docker-php-ext-install pdo pdo_pgsql pdo_sqlite
USER nobody
ADD . /var/www/html/
\ No newline at end of file
#!/bin/sh
IMAGE=k8r.eu/justjanne/quassel-rest-search
TAGS=$(git describe --always --tags HEAD)
docker build -t $IMAGE:$TAGS .
docker tag $IMAGE:$TAGS $IMAGE:latest
echo Successfully tagged $IMAGE:latest
docker push $IMAGE:$TAGS
docker push $IMAGE:latest
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment