mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-22 22:59:35 +02:00
fix docker build
This commit is contained in:
parent
73d9c88ffb
commit
43ba0fe0be
4 changed files with 8319 additions and 20 deletions
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
.git
|
||||||
|
node_modules
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,7 +5,5 @@ Thumbs.db
|
||||||
node_modules
|
node_modules
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
|
|
||||||
package-lock.json
|
|
||||||
|
|
||||||
/.tap
|
/.tap
|
||||||
*.ign.*
|
*.ign.*
|
22
Dockerfile
22
Dockerfile
|
@ -1,34 +1,20 @@
|
||||||
FROM node:18-alpine as builder
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# install dependencies
|
|
||||||
RUN apk add --update git bash
|
|
||||||
ADD package.json package-lock.json /app
|
|
||||||
RUN npm ci
|
|
||||||
|
|
||||||
# build documentation
|
|
||||||
ADD . /app
|
|
||||||
#RUN npm run build
|
|
||||||
|
|
||||||
# ---
|
|
||||||
|
|
||||||
FROM node:18-alpine
|
FROM node:18-alpine
|
||||||
LABEL org.opencontainers.image.title="db-vendo-client"
|
LABEL org.opencontainers.image.title="db-vendo-client"
|
||||||
LABEL org.opencontainers.image.description="A clean REST API wrapping around the new Deutsche Bahn API."
|
LABEL org.opencontainers.image.description="A clean REST API wrapping around the new Deutsche Bahn API."
|
||||||
LABEL org.opencontainers.image.authors="Traines <git@traines.eu>"
|
LABEL org.opencontainers.image.authors="Traines <git@traines.eu>"
|
||||||
LABEL org.opencontainers.image.documentation="https://github.com/public-transport/db-vendo-client"
|
LABEL org.opencontainers.image.documentation="https://github.com/public-transport/db-vendo-client"
|
||||||
LABEL org.opencontainers.image.source="https://github.com/public-transport/db-vendo-client"
|
LABEL org.opencontainers.image.source="https://github.com/public-transport/db-vendo-client"
|
||||||
LABEL org.opencontainers.image.revision="6"
|
LABEL org.opencontainers.image.revision="6.0.0"
|
||||||
LABEL org.opencontainers.image.licenses="ISC"
|
LABEL org.opencontainers.image.licenses="ISC"
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
ADD package.json /app
|
#RUN apk add --update git
|
||||||
RUN npm install --production && npm cache clean --force
|
ADD package.json package-lock.json /app/
|
||||||
|
RUN npm install && npm cache clean --force
|
||||||
|
|
||||||
# add source code
|
# add source code
|
||||||
ADD . /app
|
ADD . /app
|
||||||
COPY --from=builder /app/docs ./docs
|
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
|
8313
package-lock.json
generated
Normal file
8313
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue