Files
workspace/apps/go-crm/Dockerfile
2026-04-21 17:34:58 -03:00

26 lines
463 B
Docker

FROM archlinux:latest
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
go \
git \
sqlite \
curl \
&& pacman -Scc --noconfirm
WORKDIR /tmp
RUN curl -sSL https://github.com/air-verse/air/releases/download/v1.27.10/air_1.27.10_linux_amd64.tar.gz | tar -xz && \
chmod +x air && \
mv air /usr/local/bin/air
WORKDIR /workspace/apps/go-crm
COPY go.mod go.sum ./
RUN go mod download
COPY . .
EXPOSE 8080
CMD ["air"]