fix: set docker image to alpine
This commit is contained in:
parent
20a993d258
commit
c4fc730220
@ -1,7 +1,7 @@
|
|||||||
on: push
|
on: push
|
||||||
jobs:
|
jobs:
|
||||||
build-node:
|
build-node:
|
||||||
runs-on: ubuntu-latest
|
runs-on: alpine-latest
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
@ -36,7 +36,7 @@ jobs:
|
|||||||
tags: git.comprofix.com/mmckinnon/comprofix.com:latest
|
tags: git.comprofix.com/mmckinnon/comprofix.com:latest
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: alpine-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout repo
|
- name: checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
19
Dockerfile
19
Dockerfile
@ -1,13 +1,22 @@
|
|||||||
FROM php:8.1-apache
|
FROM httpd:2.4-alpine
|
||||||
|
|
||||||
LABEL "Matthew McKinnon"="<support@comprofix.com>"
|
LABEL "Matthew McKinnon"="<support@comprofix.com>"
|
||||||
|
|
||||||
ENV "DEBIAN_FRONTEND"="noninteractive"
|
RUN apk update && apk add --no-cache \
|
||||||
|
tzdata \
|
||||||
|
git \
|
||||||
|
php \
|
||||||
|
php-fpm \
|
||||||
|
php-zip \
|
||||||
|
composer \
|
||||||
|
musl-locales musl-locales-lang
|
||||||
|
|
||||||
RUN apt-get update
|
# Set the locale to en_US.UTF-8
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
ENV LANG=en_US.UTF-8
|
||||||
|
ENV LC_ALL=en_US.UTF-8
|
||||||
|
ENV LC_CTYPE=en_US.UTF-8
|
||||||
|
|
||||||
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
|
COPY --from=composer:2 /usr/bin/composer /usr/local/bin/composer
|
||||||
COPY _site/ /var/www/html
|
COPY _site/ /usr/local/apache2/htdocs/
|
||||||
|
|
||||||
WORKDIR /
|
WORKDIR /
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<html>
|
<html>
|
||||||
|
<meta charset="UTF-8">
|
||||||
<head>
|
<head>
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
<link rel="stylesheet" href="/css/global.css" />
|
<link rel="stylesheet" href="/css/global.css" />
|
||||||
|
Loading…
Reference in New Issue
Block a user