Skip to content

Commit

Permalink
kge backend
Browse files Browse the repository at this point in the history
  • Loading branch information
kanwalmeet committed Nov 19, 2024
1 parent a6ef126 commit 94ebb66
Show file tree
Hide file tree
Showing 26 changed files with 2,367 additions and 4,580 deletions.
26 changes: 17 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
FROM node:10-alpine as build-phase

# Set environment variables
ENV PORT=8080
ENV NODE_ENV="docker"
COPY package.json package-lock.json ./

## Storing node modules on a separate layer will prevent unnecessary npm installs at each build
RUN npm install \
&& mkdir /ng-app \
&& cp -R ./node_modules ./ng-app

##3 against vulnerable packages
RUN npm audit fix

# Create application directory
RUN mkdir -p /ng-app
WORKDIR /ng-app

# Copy package.json and install dependencies
COPY package.json .
RUN npm install

# Copy application code
COPY . .

# Compile TypeScript files
RUN npm run tsc

# Expose the desired port
EXPOSE 8080

# Start the application with NODE_ENV set to 'docker'
CMD ["sh", "-c", "NODE_ENV=docker node dist/src/app.js"]
6 changes: 2 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
BSD 3-Clause License

Copyright (c) 2020, Bayer AG
Copyright (c) 2024, Bayer AG
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -26,4 +24,4 @@ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 1 addition & 2 deletions MAINTAINERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
kanwalmeet (Kanwalmeet Singh)
rgrigat (Rolf Grigat)
gcoskun (Gökhan Coskun)
olga streibel (ostreibel-bay)
Loading

0 comments on commit 94ebb66

Please sign in to comment.