Added Dockerfile and gitlab-ci.yml
This commit is contained in:
parent
a7e57fb409
commit
d652ea7380
16
.gitlab-ci.yml
Normal file
16
.gitlab-ci.yml
Normal 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
13
Dockerfile
Normal 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
9
docker-compose.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
comprofix:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
container_name: comprofix
|
||||||
|
ports:
|
||||||
|
- 8080:80
|
Loading…
Reference in New Issue
Block a user