Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
fix: docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Jul 17, 2022
1 parent 45b6d71 commit 169d30e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
npm-debug.log
prod
.git
.gitignore
Dockerfile
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:15 As development
FROM node:16 As development
LABEL org.opencontainers.image.source https://github.com/EddieHubCommunity/EddieBot

WORKDIR /usr/src/app
Expand All @@ -11,7 +11,7 @@ COPY . .

RUN npm run build

FROM node:15 as production
FROM node:16 as production

ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
Expand All @@ -26,6 +26,6 @@ RUN npm install --only=production

COPY . .

COPY --from=development /usr/src/app/dist ./dist
COPY --from=development /usr/src/app/prod ./prod

CMD ["npm", "run", "start:prod"]
CMD ["npm", "start"]
17 changes: 6 additions & 11 deletions kubernetes/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,13 @@ spec:
secretKeyRef:
name: discord-token
key: DISCORD_TOKEN
- name: DISCORD_PREFIX
- name: EDDIEBOT_MONGO_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: discord-prefix
key: DISCORD_PREFIX
- name: API_URL
name: eddiebot-mongo-connection-string
key: EDDIEBOT_MONGO_CONNECTION_STRING
- name: HOME_GUILD
valueFrom:
secretKeyRef:
name: api-url
key: API_URL
- name: API_TOKEN
valueFrom:
secretKeyRef:
name: api-token-secret
key: API_TOKEN
name: home-guild
key: HOME_GUILD

0 comments on commit 169d30e

Please sign in to comment.