Skip to content

Commit

Permalink
upd golang version + use podman
Browse files Browse the repository at this point in the history
  • Loading branch information
vodolaz095 committed Jul 8, 2024
1 parent c442407 commit e4fbb4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21.0
FROM golang:1.22.5

# устанавливаем unzip
RUN apt-get update && apt-get install unzip -y
Expand Down
6 changes: 3 additions & 3 deletions generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ set -e

# можно использовать и docker, и podman

containerEngine=docker
# containerEngine=podman
# containerEngine=docker
containerEngine=podman


# создаём базовый образ
"$containerEngine" build -t localhost/go-invest-api .

# запускаем скрипт entrypoint.sh в базовом образе
"$containerEngine" run -v `pwd`/investapi:/opt/client/ localhost/go-invest-api
"$containerEngine" run -v `pwd`/investapi:/opt/client/:z localhost/go-invest-api

# делаем go.sum файл
# go mod tidy

0 comments on commit e4fbb4d

Please sign in to comment.