[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 []
|
||||
Loading…
Add table
Add a link
Reference in a new issue