FreePad/Dockerfile

17 lines
373 B
Docker
Raw Normal View History

2022-05-15 12:43:42 +03:00
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"]