Update
This commit addresses the two currently outstanding issues and also introduces some changes: - The port has been changed from 3000 to 8080 - The format of the imprint.json file has changed. See the current example file.
This commit is contained in:
parent
15d4a60958
commit
7de67cbbd8
57 changed files with 3168 additions and 19341 deletions
22
Dockerfile
22
Dockerfile
|
@ -1,18 +1,12 @@
|
|||
FROM node:current-alpine
|
||||
FROM node:lts AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn install
|
||||
|
||||
COPY yarn.lock .
|
||||
COPY package.json .
|
||||
COPY . ./
|
||||
RUN yarn build
|
||||
|
||||
RUN [ "yarn", "install" ]
|
||||
|
||||
COPY data /app/data
|
||||
COPY src /app/src
|
||||
COPY public /app/public
|
||||
|
||||
RUN [ "yarn", "build" ]
|
||||
|
||||
EXPOSE 3000 8080
|
||||
|
||||
CMD [ "yarn", "serve:production" ]
|
||||
FROM ratisbonacoding/nginx-cloudflare-cache
|
||||
COPY --from=build /app/build /app
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
Loading…
Add table
Add a link
Reference in a new issue