Skip to content

Commit

Permalink
sauce: adjust docker config and add necessary packs
Browse files Browse the repository at this point in the history
- Package was missing webpack and webpack-cli
- Perms were wrong in container
- Node was being run as root
  • Loading branch information
makinbacon21 committed Sep 24, 2023
1 parent c73521e commit abf379b
Show file tree
Hide file tree
Showing 3 changed files with 1,613 additions and 74 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,19 @@ HEALTHCHECK --interval=5s --timeout=30s --start-period=5s --retries=3 CMD [ "cur

WORKDIR /sauce-app

ENV NODE_ENV=production
ENV LDAP_URL="ldap://host.docker.internal:389"
ENV LOCAL_AGENT_URL="http://host.docker.internal:8526"

COPY package.json ./
COPY package-lock.json ./
COPY tsconfig.json ./

COPY webStatic ./webStatic

RUN chown -R node:node ./
USER node

ENV NODE_ENV=production
ENV LDAP_URL="ldap://host.docker.internal:389"
ENV LOCAL_AGENT_URL="http://host.docker.internal:8526"

# install everything for building
RUN NODE_ENV=development npm install

Expand Down
Loading

0 comments on commit abf379b

Please sign in to comment.