Added Dockerfile and gitlab-ci.yml

This commit is contained in:
Matthew McKinnon 2022-08-07 13:37:05 +10:00
parent a7e57fb409
commit d652ea7380
3 changed files with 38 additions and 0 deletions

16
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,16 @@
stages:
- build-eleventy
build-eleventy:
stage: build-eleventy
image: node:latest
cache:
paths:
- node_modules/
script:
- npm install
- npm run build
artifacts:
paths:
- _site/
only:
- master

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM php:8.1-apache
MAINTAINER Matthew McKinnon <support@comprofix.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
COPY _site/ /var/www/html
WORKDIR /

9
docker-compose.yml Normal file
View File

@ -0,0 +1,9 @@
---
version: '3'
services:
comprofix:
build:
context: .
container_name: comprofix
ports:
- 8080:80