From 2d77947872ad56ce097d2ba103ef6b4d5cd46aa0 Mon Sep 17 00:00:00 2001 From: clz Date: Thu, 11 May 2023 20:01:08 +0800 Subject: [PATCH] fix: docker --- Dockerfile | 4 ++-- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index eadeb59..892013c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # Get Go image from DockerHub. -FROM golang:1.16.6 AS api +FROM golang:1.20 AS api # Set working directory. WORKDIR /compiler # Copy dependency locks so we can cache. -COPY go.mod go.sum . +COPY go.mod go.sum ./ # Get all of our dependencies. RUN go mod download diff --git a/docker-compose.yml b/docker-compose.yml index 8596224..99d70ea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -24,7 +24,7 @@ services: image: mariadb:10.6.3 restart: always volumes: - - ./scripts/migrations.sql:/docker-entrypoint-initdb.d/1.sql + - ./scripts/billMigrations.sql:/docker-entrypoint-initdb.d/1.sql expose: - 3306 environment: