-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (34 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
47 lines (34 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Specifies a parent image
FROM golang:1.20.2-bullseye
LABEL org.opencontainers.image.source=https://github.com/Smartfactory-Tec/camera_streamer
RUN apt-get update && apt-get install -y \
libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev \
libgstreamer-plugins-bad1.0-dev \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
gstreamer1.0-tools \
gstreamer1.0-x \
gstreamer1.0-alsa \
gstreamer1.0-gl \
gstreamer1.0-gtk3 \
gstreamer1.0-qt5 \
gstreamer1.0-pulseaudio
# Creates an app directory to hold your app’s source code
WORKDIR /camera_streamer
COPY go.mod .
COPY go.sum .
# Installs Go dependencies
RUN go mod download
# Copies everything from your root directory into /app
COPY . .
# Builds your app with optional configuration
RUN go build -buildvcs=false -o ./camera_streamer github.com/SmartFactory-Tec/camera_streamer/cmd/camera_streamer
ENV CAMERA_SERVER_CONFIG=/config
# Tells Docker which network port your container listens on
EXPOSE 3000
# Specifies the executable command that runs when the container starts
ENTRYPOINT [ "/camera_streamer/camera_streamer" ]