Last active
January 30, 2022 18:54
-
-
Save bodziek666/8431b8ca4d3ced0015870cf33c270be4 to your computer and use it in GitHub Desktop.
Glowing Bear Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.15.0 AS builder | |
ARG RELEASE=0.9.0 | |
RUN apk add --no-cache wget tar && mkdir -p /app && mkdir -p /tmp/build && \ | |
wget -O /tmp/glowing-bear-${RELEASE}.tar.gz https://github.com/glowing-bear/glowing-bear/archive/refs/tags/${RELEASE}.tar.gz && \ | |
tar xvzf /tmp/glowing-bear-${RELEASE}.tar.gz --strip-components=1 -C /tmp/build && \ | |
# prepare directory with app and app only | |
mv /tmp/build/assets /app && mv /tmp/build/3rdparty /app && mv /tmp/build/css /app && \ | |
mv /tmp/build/directives /app && mv /tmp/build/js /app && mv /tmp/build/index.html /app | |
FROM nginx:1.21.6-alpine | |
COPY --from=builder --chown=101:101 /app/ /usr/share/nginx/html/ | |
CMD ["nginx", "-g", "daemon off;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment