Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions frontend/events/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Builder container to compile typescript
# Builder container to compile TypeScript
FROM node:lts-alpine AS build
WORKDIR /usr/src/app

Expand All @@ -9,11 +9,14 @@ RUN npm ci

# Copy the application source
COPY . .
# Build typescript
# Build TypeScript
RUN npm run build

# Snyk Docker scan
RUN npm install -g snyk
RUN snyk test


# Final image for serving the application
FROM nginx:stable-alpine

COPY nginx.conf /etc/nginx/nginx.conf
Expand Down