[add] librephotos
This commit is contained in:
parent
ebc53109d4
commit
a23428dec3
44 changed files with 2123 additions and 0 deletions
20
librephotos-docker/frontend/Dockerfile
Normal file
20
librephotos-docker/frontend/Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM node:13-slim as builder
|
||||
|
||||
RUN apt-get update && apt-get install -y git
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
ENV CLI_WIDTH 80
|
||||
RUN git clone https://github.com/LibrePhotos/librephotos-frontend /usr/src/app
|
||||
RUN npm install --legacy-peer-deps
|
||||
RUN npm run postinstall
|
||||
RUN npm run build
|
||||
|
||||
FROM halverneus/static-file-server
|
||||
ENV PORT 3000
|
||||
EXPOSE 3000
|
||||
|
||||
COPY --from=builder /usr/src/app/build /web
|
||||
|
||||
ENTRYPOINT ["/serve"]
|
||||
CMD []
|
||||
8
librephotos-docker/frontend/Dockerfile.dev
Normal file
8
librephotos-docker/frontend/Dockerfile.dev
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
FROM node:13-slim
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
RUN apt-get update && apt-get install git curl -y
|
||||
EXPOSE 3000
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
CMD ["/entrypoint.sh"]
|
||||
8
librephotos-docker/frontend/entrypoint.sh
Normal file
8
librephotos-docker/frontend/entrypoint.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "installing frontend"
|
||||
npm install --legacy-peer-deps
|
||||
npm run postinstall
|
||||
npm run start
|
||||
|
||||
# DANGEROUSLY_DISABLE_HOST_CHECK=true HOST=0.0.0.0 npm start
|
||||
Loading…
Add table
Add a link
Reference in a new issue