mirror of https://github.com/JustKato/FreePad.git
17 lines
373 B
Docker
17 lines
373 B
Docker
FROM golang:1.18.2-alpine
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
RUN mkdir /app
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
|
|
# Install & Run migrations
|
|
RUN wget -O /tmp/migrations.tar.gz "https://github.com/golang-migrate/migrate/releases/download/v4.15.2/migrate.linux-386.tar.gz" && \
|
|
tar -xzvf /tmp/migrations.tar.gz -C /tmp/ && \
|
|
mv /tmp/migrate /usr/bin/migrate
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["sh", "run.sh"] |