Skip to content

Commit

Permalink
add X-Frame-Options DENY
Browse files Browse the repository at this point in the history
  • Loading branch information
scholtz committed Mar 14, 2024
1 parent 08b9cb4 commit bb1ce29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM node:20 AS build
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt dist-upgrade -y && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN npm install -g npm@latest
RUN apt update \
&& apt dist-upgrade -y \
&& apt-get clean autoclean \
&& apt-get autoremove --yes \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
&& npm install -g npm@latest
WORKDIR /src
COPY package-lock.json package-lock.json
COPY package.json package.json
RUN npm ci
COPY . .
RUN npm ci
#RUN npm audit fix --save &>/dev/null
RUN npm run build
RUN cd /src/dist && ls
#RUN npm run test
Expand Down
2 changes: 2 additions & 0 deletions docker/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ server {
access_log /dev/stdout;
error_log /dev/stderr;

add_header X-Frame-Options DENY always;

location ~* \.(manifest|html|xml|json)$ {
root /app;
index index.html;
Expand Down

0 comments on commit bb1ce29

Please sign in to comment.