fix: docker

This commit is contained in:
clz 2023-05-11 20:01:08 +08:00
parent efe6160521
commit 2d77947872
2 changed files with 3 additions and 3 deletions

View File

@ -1,11 +1,11 @@
# Get Go image from DockerHub. # Get Go image from DockerHub.
FROM golang:1.16.6 AS api FROM golang:1.20 AS api
# Set working directory. # Set working directory.
WORKDIR /compiler WORKDIR /compiler
# Copy dependency locks so we can cache. # Copy dependency locks so we can cache.
COPY go.mod go.sum . COPY go.mod go.sum ./
# Get all of our dependencies. # Get all of our dependencies.
RUN go mod download RUN go mod download

View File

@ -24,7 +24,7 @@ services:
image: mariadb:10.6.3 image: mariadb:10.6.3
restart: always restart: always
volumes: volumes:
- ./scripts/migrations.sql:/docker-entrypoint-initdb.d/1.sql - ./scripts/billMigrations.sql:/docker-entrypoint-initdb.d/1.sql
expose: expose:
- 3306 - 3306
environment: environment: