mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-22 23:38:58 +00:00
Add Shopware 6 example (#61)
This commit is contained in:
27
shopware6/Dockerfile
Normal file
27
shopware6/Dockerfile
Normal file
@@ -0,0 +1,27 @@
|
||||
#syntax=docker/dockerfile:1.4
|
||||
|
||||
ARG BASE_IMAGE=shopware/docker-base:8.3
|
||||
|
||||
# pin versions
|
||||
FROM ghcr.io/shopware/docker-base:8.3 as base-image
|
||||
FROM ghcr.io/shopware/shopware-cli:latest-php-8.3 AS shopware-cli
|
||||
|
||||
# build
|
||||
|
||||
FROM shopware-cli as build
|
||||
|
||||
ARG SHOPWARE_PACKAGES_TOKEN
|
||||
|
||||
ADD . /src
|
||||
WORKDIR /src
|
||||
|
||||
RUN --mount=type=secret,id=composer_auth,dst=/src/auth.json \
|
||||
--mount=type=cache,target=/root/.composer \
|
||||
--mount=type=cache,target=/root/.npm \
|
||||
/usr/local/bin/entrypoint.sh shopware-cli project ci /src
|
||||
|
||||
FROM base-image
|
||||
|
||||
COPY --from=build --chown=82 --link /src /var/www/html
|
||||
|
||||
EXPOSE 8000
|
||||
Reference in New Issue
Block a user