Skip to content

Instantly share code, notes, and snippets.

@jwhulette

jwhulette/Dockerfile

Last active Jul 12, 2020
Embed
What would you like to do?
[Oracle Linux 7] An Oracle Linux 7 Docker setup for PHP-CLI and OCI8 #php
version: '3'
services:
app:
build:
context: .
dockerfile: ./.docker/php-cli/Dockerfile
restart: on-failure
tty: true
stdin_open: true
container_name: app
volumes:
- ./:/app:delegated
FROM oraclelinux:7
# Install releases
RUN yum install -y \
oracle-release-el7 \
oracle-php-release-el7
# Install instaclient
RUN yum install -y \
oracle-instantclient19.5-basic
# Install php
RUN yum install -y \
php \
php-pdo \
php-oci8-19c \
sqlite
RUN yum clean all
RUN mkdir /app
CMD tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment