Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelGoerentz committed Jun 20, 2024
1 parent cb12e59 commit af3ab51
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# First stage. Building a binary
# -----------------------------------------------------------------------------
FROM golang:alpine AS builder
FROM golang:1.22 AS builder

# Download the source code
RUN apk update && apk add git
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/marcelGoerentz/Threadfin.git /src

WORKDIR /src
Expand All @@ -16,7 +16,7 @@ RUN go build threadfin.go

# Second stage. Creating an image
# -----------------------------------------------------------------------------
FROM alpine:3.20
FROM ubuntu:22.04

ARG BUILD_DATE
ARG VCS_REF
Expand Down Expand Up @@ -53,14 +53,16 @@ ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$THREADFIN
# Set working directory
WORKDIR $THREADFIN_HOME

RUN apk update && apk upgrade
RUN apk add ca-certificates\
RUN rm /var/lib/dpkg/info/libc-bin.*
RUN apt-get clean
RUN apt-get install libc-bin
RUN apt-get update && apt-get upgrade
RUN apt-get install -y ca-certificates\
curl\
ffmpeg\
vlc

#RUN DEBIAN_FRONTEND=noninteractive TZ="America/New_York" apt-get -y install tzdata
RUN DEBIAN_FRONTEND=noninteractive TZ="America/New_York" apk add tzdata
RUN DEBIAN_FRONTEND=noninteractive TZ="America/New_York" apt-get -y install tzdata

RUN mkdir -p $THREADFIN_BIN

Expand Down

0 comments on commit af3ab51

Please sign in to comment.