fix: docker
This commit is contained in:
parent
efe6160521
commit
2d77947872
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user