-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(KUI-1542): add Dockerfile-dev and update docker-compose.yml.in
- Loading branch information
1 parent
cbc59e9
commit e162c90
Showing
3 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM kthregistry.azurecr.io/kth-nodejs-20:latest | ||
LABEL maintainer="KTH-studadm studadm.developers@kth.se" | ||
|
||
WORKDIR /application | ||
ENV NODE_PATH /application | ||
|
||
ENV TZ Europe/Stockholm | ||
|
||
COPY ["config", "config"] | ||
COPY ["i18n", "i18n"] | ||
COPY ["public", "public"] | ||
COPY ["server", "server"] | ||
COPY ["domain", "domain"] | ||
|
||
COPY [".babelrc", ".babelrc"] | ||
COPY ["app.js", "app.js"] | ||
COPY ["build.sh", "build.sh"] | ||
COPY ["package.json", "package.json"] | ||
COPY ["package-lock.json", "package-lock.json"] | ||
COPY ["webpack.config.js", "webpack.config.js"] | ||
# Config for jest tester | ||
COPY ["babel.config.js", "babel.config.js"] | ||
COPY ["jest.config.js", "jest.config.js"] | ||
|
||
RUN chmod a+rx build.sh && \ | ||
chown -R node:node /application | ||
|
||
USER node | ||
|
||
RUN npm pkg delete scripts.prepare && \ | ||
npm ci --unsafe-perm && \ | ||
npm run build && \ | ||
npm prune --production | ||
|
||
EXPOSE 3000 | ||
|
||
ENV TZ Europe/Stockholm | ||
|
||
CMD ["npm", "run", "docker:start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters