Skip to content

Commit

Permalink
refactor: dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Buchleitner <[email protected]>
  • Loading branch information
mabunixda committed Dec 6, 2024
1 parent 4ade6c6 commit aaf7ce7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

#first stage - building golang artifact
FROM golang:1.20.12-alpine as builder
FROM golang:1.20.12-alpine AS builder
WORKDIR /src
COPY . .
RUN go mod download
Expand Down
1 change: 1 addition & 0 deletions node/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ COPY . .
RUN npm install

EXPOSE 3000

CMD [ "node", "--require", "./instrumentation.js", "node_controller.js"]
10 changes: 5 additions & 5 deletions python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.11-alpine

COPY . /app
WORKDIR /app
# Install build dependencies
RUN apk add --no-cache gcc g++

RUN pip3 install -r /app/requirements.txt

RUN apk del gcc g++
RUN apk add --virtual build-deps --no-cache gcc g++ \
&& pip3 install -r /app/requirements.txt \
&& apk del build-deps

EXPOSE 5000

ENTRYPOINT ["python", "messages.py"]

0 comments on commit aaf7ce7

Please sign in to comment.