mirror of
https://mau.dev/andreijiroh-dev/website.git
synced 2024-11-10 03:39:38 +00:00
Fix some Docker-related issues
Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
parent
3b6b84728d
commit
c6bcc8722c
3 changed files with 19 additions and 6 deletions
|
@ -15,7 +15,6 @@ default:
|
|||
- pip3 install -r requirements.txt
|
||||
- npm ci
|
||||
- curl --silent "https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer" | bash
|
||||
- (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) | sh
|
||||
# Global builds and stuff
|
||||
variables:
|
||||
DEBUG: "1"
|
||||
|
@ -26,7 +25,6 @@ variables:
|
|||
pages:
|
||||
stage: build
|
||||
script:
|
||||
- bash ./build.sh
|
||||
- doppler run -- ./bin/deploykit-pages.sh
|
||||
artifacts:
|
||||
paths:
|
||||
|
|
|
@ -36,7 +36,10 @@ RUN apk add --no-cache \
|
|||
git \
|
||||
git-fast-import \
|
||||
openssh \
|
||||
&& pip3 install --no-cache-dir \
|
||||
gnupg \
|
||||
&& (curl -Ls --tlsv1.2 --proto "=https" --retry 3 https://cli.doppler.com/install.sh || wget -t 3 -qO- https://cli.doppler.com/install.sh) \
|
||||
| sh
|
||||
RUN pip3 install --no-cache-dir \
|
||||
mkdocs-material \
|
||||
mkdocs-redirects \
|
||||
mkdocs-git-revision-date-localized-plugin \
|
||||
|
@ -51,6 +54,7 @@ RUN git config --global --add safe.directory /docs &&\
|
|||
# Expose MkDocs development server port
|
||||
EXPOSE 8000
|
||||
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint
|
||||
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
|
||||
CMD [ "serve", "--dev-addr=0.0.0.0:8000" ]
|
||||
WORKDIR /docs
|
||||
|
||||
#COPY entrypoint.sh /usr/local/bin/entrypoint
|
||||
CMD [ "mkdocs", "serve", "--dev-addr=0.0.0.0:8000" ]
|
11
docker/README.md
Normal file
11
docker/README.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
# CI image for GitLab CI deploys
|
||||
|
||||
This directory contains the necessary files to build a container image for the website deployments.
|
||||
|
||||
## How to build
|
||||
|
||||
Just run the script to build locally
|
||||
|
||||
```bash
|
||||
./docker/build.sh
|
||||
```
|
Loading…
Reference in a new issue