change dockerfile

- change base image to bitnami/minideb
- remove unnecessary dependencies
This commit is contained in:
Aliberk Sandıkçı 2023-08-24 15:26:05 +03:00
parent be2ec06816
commit fc2feaf3af
Signed by: asandikci
GPG key ID: 25C67A03B5666BC1

View file

@ -3,24 +3,16 @@
# after cd ahenk-go
# docker run -it -d --name CONT_NAME --mount type=bind,source=".",target=/ahenk-go/ IMAGE_NAME:VERSION "/bin/bash"
ARG CODE_VERSION=sid
FROM debian:${CODE_VERSION}
RUN su -c "echo 'deb http://ftp.tr.debian.org/debian sid main' >> /etc/apt/sources.list.d/sid.list"
FROM bitnami/minideb
RUN apt-get update
RUN apt-get upgrade -y
### INSTALL USEFUL UTILITIES ###
RUN apt-get install curl wget tree nano procps -y
RUN apt-get install curl wget tree nano procps lintian -y
### INSTALL BUILD DEPENDENCIES ###
RUN apt-get install dh-golang dh-make -y
RUN apt-get install dh-make-golang -y
RUN apt-get install golang-github-sevlyar-go-daemon-dev -y
RUN apt-get install golang-golang-x-exp-dev -y
RUN apt-get install sudo dpkg-dev debhelper golang-any -y
### CONFIGURATIONS ###
# Enable UTF8 Encoding