forked from PrestaShop/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) 路 1.12 KB
/
Copy pathDockerfile
File metadata and controls
26 lines (20 loc) 路 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM --platform=linux/amd64 gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine AS gcloud_amd64
FROM --platform=linux/arm64 gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine AS gcloud_arm64
# Google does not provide images for armv7, we use another platform for this case
FROM --platform=linux/amd64 gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine AS gcloud_arm
FROM gcloud_${TARGETARCH} AS gcloud
ENV PS_VERSION=8.2.x
RUN gcloud config set core/disable_usage_reporting true && \
gcloud config set component_manager/disable_update_check true && \
gcloud config set metrics/environment github_docker_image && \
gcloud --version
RUN gsutil cp `gsutil ls gs://prestashop-core-nightly/ | grep -E "$PS_VERSION.+\.zip$" | tail -1` /tmp/prestashop.zip
FROM prestashop/base:7.4-apache
LABEL maintainer="PrestaShop Core Team <coreteam@prestashop.com>"
ENV PS_VERSION=8.2.x
COPY --from=gcloud /tmp/prestashop.zip /tmp/prestashop.zip
# Extract PrestaShop files
RUN mkdir -p /tmp/data-ps && \
unzip -q /tmp/prestashop.zip -d /tmp/data-ps/ && \
bash /tmp/ps-extractor.sh /tmp/data-ps && \
rm /tmp/prestashop.zip