mirror of
https://gitlab.com/ric_harvey/MailHog.git
synced 2024-11-23 22:34:04 +00:00
Merge pull request #400 from lafentres/patch-1
Update Dockerfile to go 1.18 syntax
This commit is contained in:
commit
a052f565bc
1 changed files with 2 additions and 2 deletions
|
@ -2,14 +2,14 @@
|
||||||
# MailHog Dockerfile
|
# MailHog Dockerfile
|
||||||
#
|
#
|
||||||
|
|
||||||
FROM golang:alpine as builder
|
FROM golang:1.18-alpine as builder
|
||||||
|
|
||||||
# Install MailHog:
|
# Install MailHog:
|
||||||
RUN apk --no-cache add --virtual build-dependencies \
|
RUN apk --no-cache add --virtual build-dependencies \
|
||||||
git \
|
git \
|
||||||
&& mkdir -p /root/gocode \
|
&& mkdir -p /root/gocode \
|
||||||
&& export GOPATH=/root/gocode \
|
&& export GOPATH=/root/gocode \
|
||||||
&& go get github.com/mailhog/MailHog
|
&& go install github.com/mailhog/MailHog@latest
|
||||||
|
|
||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
# Add mailhog user/group with uid/gid 1000.
|
# Add mailhog user/group with uid/gid 1000.
|
||||||
|
|
Loading…
Reference in a new issue