Skip to content

Commit

Permalink
fix(docker): remove gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvain-reynaud committed Dec 7, 2022
1 parent e0b7b72 commit d220f41
Show file tree
Hide file tree
Showing 5 changed files with 3,380 additions and 4,302 deletions.
10 changes: 1 addition & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM node:16-bullseye-slim

ARG GITLAB_REGISTRY_TOKEN=

RUN apt-get update --no-install-recommends && \
apt-get install -y --no-install-recommends curl=7.74.0-1.3+deb11u3 && \
rm -rf /var/lib/apt/lists/*
Expand All @@ -10,13 +8,7 @@ WORKDIR /home/node
ENV NODE_ENV production
COPY --chown=node:node . .

RUN npm config set \
@polyflix:registry https://gitlab.polytech.umontpellier.fr/api/v4/projects/1343/packages/npm/ && \
npm config set -- \
'//gitlab.polytech.umontpellier.fr/api/v4/projects/1343/packages/npm/:_authToken' \
"${GITLAB_REGISTRY_TOKEN}" && \
npm install && \
rm -rf ~/.npm ~/.npmrc
RUN npm install

USER node
EXPOSE 5000
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.migrations
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM gitlab.polytech.umontpellier.fr:5050/polyflix-do/docker-images/psql-migration:latest
FROM ghcr.io/polyflix/dependencies/psql-migration:main

COPY ./dist/resources/migrations migrations

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ const message = new KafkaEventBuilder(id, element)
.build();

this.kafkaClient.emit(FOO_TOPICS, message);
```
```
Loading

0 comments on commit d220f41

Please sign in to comment.